summaryrefslogtreecommitdiff
path: root/dh.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2006-11-08 00:02:59 +1100
committerDarren Tucker <dtucker@zip.com.au>2006-11-08 00:02:59 +1100
commit360357bee571a41dd4635332d486751d8120d3e2 (patch)
tree49fd516b636a8a1762af182c51c8bf915b7e33cf /dh.c
parent14ea86391b250aaa65cdff8ac4b2c092c6d8d90e (diff)
downloadopenssh-git-V_4_5.tar.gz
- (dtucker) [dh.c] Type fix for BN_hex2bn; ok markus@V_4_5_P1V_4_5
Diffstat (limited to 'dh.c')
-rw-r--r--dh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dh.c b/dh.c
index e708ff78..02b9a408 100644
--- a/dh.c
+++ b/dh.c
@@ -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);