summaryrefslogtreecommitdiff
path: root/dh.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2006-11-08 10:01:36 +1100
committerDarren Tucker <dtucker@zip.com.au>2006-11-08 10:01:36 +1100
commitb0781f79db208900b2d0fd4a1ee69e121bf37792 (patch)
treef6cab22be2c89423c83b0970707ae1a06c6dbe56 /dh.c
parent14ea86391b250aaa65cdff8ac4b2c092c6d8d90e (diff)
downloadopenssh-git-b0781f79db208900b2d0fd4a1ee69e121bf37792.tar.gz
- markus@cvs.openbsd.org 2006/11/07 13:02:07
[dh.c] BN_hex2bn returns int; from dtucker@
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 e708ff78..78e230b9 100644
--- a/dh.c
+++ b/dh.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dh.c,v 1.43 2006/11/06 21:25:28 markus Exp $ */
+/* $OpenBSD: dh.c,v 1.44 2006/11/07 13:02:07 markus Exp $ */
/*
* Copyright (c) 2000 Niels Provos. All rights reserved.
*
@@ -254,9 +254,9 @@ dh_new_group_asc(const char *gen, const char *modulus)
if ((dh = DH_new()) == NULL)
fatal("dh_new_group_asc: DH_new");
- if (BN_hex2bn(&dh->p, modulus) == NULL)
+ if (BN_hex2bn(&dh->p, modulus) == 0)
fatal("BN_hex2bn p");
- if (BN_hex2bn(&dh->g, gen) == NULL)
+ if (BN_hex2bn(&dh->g, gen) == 0)
fatal("BN_hex2bn g");
return (dh);