summaryrefslogtreecommitdiff
path: root/kex.c
diff options
context:
space:
mode:
authordjm <djm>2003-04-01 11:44:37 +0000
committerdjm <djm>2003-04-01 11:44:37 +0000
commit695b0e63943681748898071cdf2f3308ef807e56 (patch)
tree5f1b10254e3d3c6c93b93cfac534ab2a762fd7bb /kex.c
parent129be75814e07fa1afe78cf356246a431d58d4b9 (diff)
downloadopenssh-695b0e63943681748898071cdf2f3308ef807e56.tar.gz
- markus@cvs.openbsd.org 2003/04/01 10:31:26
[compat.c compat.h kex.c] bugfix causes stalled connections for ssh.com < 3.0; noticed by ho@; tested by ho@ and myself
Diffstat (limited to 'kex.c')
-rw-r--r--kex.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/kex.c b/kex.c
index 2c1cacfe..b070ccf4 100644
--- a/kex.c
+++ b/kex.c
@@ -23,7 +23,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: kex.c,v 1.54 2003/02/16 17:09:57 markus Exp $");
+RCSID("$OpenBSD: kex.c,v 1.55 2003/04/01 10:31:26 markus Exp $");
#include <openssl/crypto.h>
@@ -392,7 +392,8 @@ kex_choose_conf(Kex *kex)
kex->we_need = need;
/* ignore the next message if the proposals do not match */
- if (first_kex_follows && !proposals_match(my, peer)) {
+ if (first_kex_follows && !proposals_match(my, peer) &&
+ !(datafellows & SSH_BUG_FIRSTKEX)) {
type = packet_read();
debug2("skipping next packet (type %u)", type);
}