summaryrefslogtreecommitdiffstats
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
parent14ea86391b250aaa65cdff8ac4b2c092c6d8d90e (diff)
- (dtucker) [dh.c] Type fix for BN_hex2bn; ok markus@V_4_5_P1V_4_5
-rw-r--r--ChangeLog3
-rw-r--r--dh.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 3af5bc88..27555910 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,6 +13,7 @@
dtucker@
- (dtucker) [README contrib/{caldera,redhat,contrib}/openssh.spec] Bump
versions.
+ - (dtucker) [dh.c] Type fix for BN_hex2bn; ok markus@
- (dtucker) Release 4.5p1.
20061105
@@ -2605,4 +2606,4 @@
OpenServer 6 and add osr5bigcrypt support so when someone migrates
passwords between UnixWare and OpenServer they will still work. OK dtucker@
-$Id: ChangeLog,v 1.4588 2006/11/07 12:27:34 dtucker Exp $
+$Id: ChangeLog,v 1.4588.2.1 2006/11/07 13:02:59 dtucker Exp $
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);