diff options
author | Damien Miller <djm@mindrot.org> | 2002-01-22 23:09:22 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2002-01-22 23:09:22 +1100 |
commit | da7551677b301c6fd063eb162c7d32b37723a360 (patch) | |
tree | ee731b658802d003930540958f0b7ffc5a4a12bf /sshd.c | |
parent | 154dda73a858a5924c2f5684dfec3e377cc3ab5d (diff) |
- markus@cvs.openbsd.org 2001/12/27 18:22:16
[auth1.c authfile.c auth-rsa.c dh.c kexdh.c kexgex.c key.c rsa.c scard.c ssh-agent.c sshconnect1.c sshd.c ssh-dss.c]
call fatal() for openssl allocation failures
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(); |