summaryrefslogtreecommitdiffstats
path: root/kexgex.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-02-26 18:58:29 +0100
committerBen Lindstrom <mouring@eviladmin.org>2002-02-26 18:58:29 +0100
commit14519086e4d04acec0e0f83e1d31ffdce4419d52 (patch)
tree2a4c32ac3d83a81991bae34f4a1552fc9b4e0345 /kexgex.c
parent - markus@cvs.openbsd.org 2002/02/22 12:20:34 (diff)
downloadopenssh-14519086e4d04acec0e0f83e1d31ffdce4419d52.tar.xz
openssh-14519086e4d04acec0e0f83e1d31ffdce4419d52.zip
- 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 'kexgex.c')
-rw-r--r--kexgex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kexgex.c b/kexgex.c
index dc2fa6723..ac377aafc 100644
--- a/kexgex.c
+++ b/kexgex.c
@@ -24,7 +24,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: kexgex.c,v 1.17 2002/01/31 13:35:11 markus Exp $");
+RCSID("$OpenBSD: kexgex.c,v 1.18 2002/02/23 17:59:02 markus Exp $");
#include <openssl/bn.h>
@@ -319,6 +319,7 @@ kexgex_server(Kex *kex)
if ((dh_client_pub = BN_new()) == NULL)
fatal("dh_client_pub == NULL");
packet_get_bignum2(dh_client_pub);
+ packet_check_eom();
#ifdef DEBUG_KEXDH
fprintf(stderr, "dh_client_pub= ");