summaryrefslogtreecommitdiffstats
path: root/kexdhc.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2006-11-07 13:14:41 +0100
committerDarren Tucker <dtucker@zip.com.au>2006-11-07 13:14:41 +0100
commit0bc85579a9b5a106826169303dd2ee61c63c161e (patch)
treed98e767f275d45b4c62984fb73a3484a5b8e134f /kexdhc.c
parent - (dtucker) [sshd.c] Use privsep_pw if we have it, but only require it (diff)
downloadopenssh-0bc85579a9b5a106826169303dd2ee61c63c161e.tar.xz
openssh-0bc85579a9b5a106826169303dd2ee61c63c161e.zip
- 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 'kexdhc.c')
-rw-r--r--kexdhc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/kexdhc.c b/kexdhc.c
index 61d54fdc2..d384c8052 100644
--- a/kexdhc.c
+++ b/kexdhc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kexdhc.c,v 1.10 2006/10/31 16:33:12 markus Exp $ */
+/* $OpenBSD: kexdhc.c,v 1.11 2006/11/06 21:25:28 markus Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
*
@@ -120,7 +120,8 @@ kexdh_client(Kex *kex)
#endif
if ((shared_secret = BN_new()) == NULL)
fatal("kexdh_client: BN_new failed");
- BN_bin2bn(kbuf, kout, shared_secret);
+ if (BN_bin2bn(kbuf, kout, shared_secret) == NULL)
+ fatal("kexdh_client: BN_bin2bn failed");
memset(kbuf, 0, klen);
xfree(kbuf);