diff options
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -40,7 +40,7 @@ | |||
40 | */ | 40 | */ |
41 | 41 | ||
42 | #include "includes.h" | 42 | #include "includes.h" |
43 | RCSID("$OpenBSD: sshd.c,v 1.217 2001/12/19 07:18:56 deraadt Exp $"); | 43 | RCSID("$OpenBSD: sshd.c,v 1.218 2001/12/27 18:22:16 markus Exp $"); |
44 | 44 | ||
45 | #include <openssl/dh.h> | 45 | #include <openssl/dh.h> |
46 | #include <openssl/bn.h> | 46 | #include <openssl/bn.h> |
@@ -1352,7 +1352,8 @@ do_ssh1_kex(void) | |||
1352 | debug("Encryption type: %.200s", cipher_name(cipher_type)); | 1352 | debug("Encryption type: %.200s", cipher_name(cipher_type)); |
1353 | 1353 | ||
1354 | /* Get the encrypted integer. */ | 1354 | /* Get the encrypted integer. */ |
1355 | session_key_int = BN_new(); | 1355 | if ((session_key_int = BN_new()) == NULL) |
1356 | fatal("do_ssh1_kex: BN_new failed"); | ||
1356 | packet_get_bignum(session_key_int, &slen); | 1357 | packet_get_bignum(session_key_int, &slen); |
1357 | 1358 | ||
1358 | protocol_flags = packet_get_int(); | 1359 | protocol_flags = packet_get_int(); |