summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/kexgexc.c
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2021-01-27 09:26:55 +0000
committerDamien Miller <djm@cvs.openbsd.org>2021-01-27 09:26:55 +0000
commit5adae05e49652ef94409fd4846cc55eeefb329da (patch)
tree0e522cd247eaa4ddb7368c8377aca5b6d14c014f /usr.bin/ssh/kexgexc.c
parent9737c31fc68a1ae0aa4f981407f0e061993e627e (diff)
remove global variable used to stash compat flags and use the
purpose-built ssh->compat variable instead; feedback/ok markus@
Diffstat (limited to 'usr.bin/ssh/kexgexc.c')
-rw-r--r--usr.bin/ssh/kexgexc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/kexgexc.c b/usr.bin/ssh/kexgexc.c
index e8749ef6894..6e00904e58c 100644
--- a/usr.bin/ssh/kexgexc.c
+++ b/usr.bin/ssh/kexgexc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kexgexc.c,v 1.35 2019/11/25 00:51:37 djm Exp $ */
+/* $OpenBSD: kexgexc.c,v 1.36 2021/01/27 09:26:54 djm Exp $ */
/*
* Copyright (c) 2000 Niels Provos. All rights reserved.
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -61,7 +61,7 @@ kexgex_client(struct ssh *ssh)
kex->min = DH_GRP_MIN;
kex->max = DH_GRP_MAX;
kex->nbits = nbits;
- if (datafellows & SSH_BUG_DHGEX_LARGE)
+ if (ssh->compat & SSH_BUG_DHGEX_LARGE)
kex->nbits = MINIMUM(kex->nbits, 4096);
/* New GEX request */
if ((r = sshpkt_start(ssh, SSH2_MSG_KEX_DH_GEX_REQUEST)) != 0 ||