summaryrefslogtreecommitdiff
path: root/dh.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2006-11-07 23:14:41 +1100
committerDarren Tucker <dtucker@zip.com.au>2006-11-07 23:14:41 +1100
commit0bc85579a9b5a106826169303dd2ee61c63c161e (patch)
treed98e767f275d45b4c62984fb73a3484a5b8e134f /dh.c
parentdf0e438a2e4efe0422f6e0deb732d819d5938437 (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 'dh.c')
-rw-r--r--dh.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dh.c b/dh.c
index f6ef05cf6..e708ff78b 100644
--- a/dh.c
+++ b/dh.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: dh.c,v 1.42 2006/08/03 03:34:42 deraadt Exp $ */ 1/* $OpenBSD: dh.c,v 1.43 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 * 4 *
@@ -254,9 +254,9 @@ dh_new_group_asc(const char *gen, const char *modulus)
254 if ((dh = DH_new()) == NULL) 254 if ((dh = DH_new()) == NULL)
255 fatal("dh_new_group_asc: DH_new"); 255 fatal("dh_new_group_asc: DH_new");
256 256
257 if (BN_hex2bn(&dh->p, modulus) == 0) 257 if (BN_hex2bn(&dh->p, modulus) == NULL)
258 fatal("BN_hex2bn p"); 258 fatal("BN_hex2bn p");
259 if (BN_hex2bn(&dh->g, gen) == 0) 259 if (BN_hex2bn(&dh->g, gen) == NULL)
260 fatal("BN_hex2bn g"); 260 fatal("BN_hex2bn g");
261 261
262 return (dh); 262 return (dh);