diff options
author | Darren Tucker <dtucker@zip.com.au> | 2006-11-07 23:14:41 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2006-11-07 23:14:41 +1100 |
commit | 0bc85579a9b5a106826169303dd2ee61c63c161e (patch) | |
tree | d98e767f275d45b4c62984fb73a3484a5b8e134f /kexgexc.c | |
parent | df0e438a2e4efe0422f6e0deb732d819d5938437 (diff) |
- markus@cvs.openbsd.org 2006/11/06 21:25:28
[auth-rsa.c kexgexc.c kexdhs.c key.c ssh-dss.c sshd.c kexgexs.c
ssh-keygen.c bufbn.c moduli.c scard.c kexdhc.c sshconnect1.c dh.c rsa.c]
add missing checks for openssl return codes; with & ok djm@
Diffstat (limited to 'kexgexc.c')
-rw-r--r-- | kexgexc.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: kexgexc.c,v 1.10 2006/10/31 16:33:12 markus Exp $ */ | 1 | /* $OpenBSD: kexgexc.c,v 1.11 2006/11/06 21:25:28 markus Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2000 Niels Provos. All rights reserved. | 3 | * Copyright (c) 2000 Niels Provos. All rights reserved. |
4 | * Copyright (c) 2001 Markus Friedl. All rights reserved. | 4 | * Copyright (c) 2001 Markus Friedl. All rights reserved. |
@@ -158,7 +158,8 @@ kexgex_client(Kex *kex) | |||
158 | #endif | 158 | #endif |
159 | if ((shared_secret = BN_new()) == NULL) | 159 | if ((shared_secret = BN_new()) == NULL) |
160 | fatal("kexgex_client: BN_new failed"); | 160 | fatal("kexgex_client: BN_new failed"); |
161 | BN_bin2bn(kbuf, kout, shared_secret); | 161 | if (BN_bin2bn(kbuf, kout, shared_secret) == NULL) |
162 | fatal("kexgex_client: BN_bin2bn failed"); | ||
162 | memset(kbuf, 0, klen); | 163 | memset(kbuf, 0, klen); |
163 | xfree(kbuf); | 164 | xfree(kbuf); |
164 | 165 | ||