diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2002-02-26 18:58:29 +0100 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2002-02-26 18:58:29 +0100 |
commit | 14519086e4d04acec0e0f83e1d31ffdce4419d52 (patch) | |
tree | 2a4c32ac3d83a81991bae34f4a1552fc9b4e0345 /kexgex.c | |
parent | - markus@cvs.openbsd.org 2002/02/22 12:20:34 (diff) | |
download | openssh-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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= "); |