diff options
author | Darren Tucker <dtucker@zip.com.au> | 2006-11-08 00:02:59 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2006-11-08 00:02:59 +1100 |
commit | 360357bee571a41dd4635332d486751d8120d3e2 (patch) | |
tree | 49fd516b636a8a1762af182c51c8bf915b7e33cf /dh.c | |
parent | 14ea86391b250aaa65cdff8ac4b2c092c6d8d90e (diff) | |
download | openssh-git-V_4_5.tar.gz |
Diffstat (limited to 'dh.c')
-rw-r--r-- | dh.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |