diff options
Diffstat (limited to 'kexgexs.c')
-rw-r--r-- | kexgexs.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: kexgexs.c,v 1.26 2015/12/04 16:41:28 markus Exp $ */ | 1 | /* $OpenBSD: kexgexs.c,v 1.27 2016/05/31 23:46:14 dtucker Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2000 Niels Provos. All rights reserved. | 3 | * Copyright (c) 2000 Niels Provos. All rights reserved. |
4 | * Copyright (c) 2001 Markus Friedl. All rights reserved. | 4 | * Copyright (c) 2001 Markus Friedl. All rights reserved. |
@@ -89,7 +89,7 @@ input_kex_dh_gex_request(int type, u_int32_t seq, void *ctxt) | |||
89 | nbits = MIN(DH_GRP_MAX, nbits); | 89 | nbits = MIN(DH_GRP_MAX, nbits); |
90 | 90 | ||
91 | if (kex->max < kex->min || kex->nbits < kex->min || | 91 | if (kex->max < kex->min || kex->nbits < kex->min || |
92 | kex->max < kex->nbits) { | 92 | kex->max < kex->nbits || kex->max < DH_GRP_MIN) { |
93 | r = SSH_ERR_DH_GEX_OUT_OF_RANGE; | 93 | r = SSH_ERR_DH_GEX_OUT_OF_RANGE; |
94 | goto out; | 94 | goto out; |
95 | } | 95 | } |