diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2002-02-23 17:59:03 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2002-02-23 17:59:03 +0000 |
commit | b69ded7105ae48d5c476230f7b43cd5d745b5182 (patch) | |
tree | 2aa140f791697911e0ec7e86dd012fb3438c0873 /usr.bin/ssh/kex.c | |
parent | e7efe455a2867324da4fa5d3422c3ed94830f313 (diff) |
don't allow garbage after payload.
Diffstat (limited to 'usr.bin/ssh/kex.c')
-rw-r--r-- | usr.bin/ssh/kex.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ssh/kex.c b/usr.bin/ssh/kex.c index e9f944b05ba..e91b2ee35cd 100644 --- a/usr.bin/ssh/kex.c +++ b/usr.bin/ssh/kex.c @@ -23,7 +23,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: kex.c,v 1.45 2002/02/14 23:41:01 markus Exp $"); +RCSID("$OpenBSD: kex.c,v 1.46 2002/02/23 17:59:02 markus Exp $"); #include <openssl/crypto.h> @@ -132,6 +132,7 @@ kex_finish(Kex *kex) debug("waiting for SSH2_MSG_NEWKEYS"); packet_read_expect(SSH2_MSG_NEWKEYS); + packet_check_eom(); debug("SSH2_MSG_NEWKEYS received"); kex->done = 1; |