summaryrefslogtreecommitdiff
path: root/kexgex.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 /kexgex.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 '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 @@
24 */ 24 */
25 25
26#include "includes.h" 26#include "includes.h"
27RCSID("$OpenBSD: kexgex.c,v 1.17 2002/01/31 13:35:11 markus Exp $"); 27RCSID("$OpenBSD: kexgex.c,v 1.18 2002/02/23 17:59:02 markus Exp $");
28 28
29#include <openssl/bn.h> 29#include <openssl/bn.h>
30 30
@@ -319,6 +319,7 @@ kexgex_server(Kex *kex)
319 if ((dh_client_pub = BN_new()) == NULL) 319 if ((dh_client_pub = BN_new()) == NULL)
320 fatal("dh_client_pub == NULL"); 320 fatal("dh_client_pub == NULL");
321 packet_get_bignum2(dh_client_pub); 321 packet_get_bignum2(dh_client_pub);
322 packet_check_eom();
322 323
323#ifdef DEBUG_KEXDH 324#ifdef DEBUG_KEXDH
324 fprintf(stderr, "dh_client_pub= "); 325 fprintf(stderr, "dh_client_pub= ");