summaryrefslogtreecommitdiffstats
path: root/kex.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-02-26 17:58:29 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-02-26 17:58:29 +0000
commit14519086e4d04acec0e0f83e1d31ffdce4419d52 (patch)
tree2a4c32ac3d83a81991bae34f4a1552fc9b4e0345 /kex.c
parent9c8edc96fcb30cb8a9b0bd87fc1903c6fb618c31 (diff)
- markus@cvs.openbsd.org 2002/02/23 17:59:02
[kex.c kexdh.c kexgex.c] don't allow garbage after payload.
Diffstat (limited to 'kex.c')
-rw-r--r--kex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kex.c b/kex.c
index e9f944b0..e91b2ee3 100644
--- a/kex.c
+++ b/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;