]> andersk Git - openssh.git/commitdiff
- (dtucker) [dh.c] Type fix for BN_hex2bn; ok markus@ V_4_5 V_4_5_P1
authordtucker <dtucker>
Tue, 7 Nov 2006 13:02:59 +0000 (13:02 +0000)
committerdtucker <dtucker>
Tue, 7 Nov 2006 13:02:59 +0000 (13:02 +0000)
ChangeLog
dh.c

index 3c39282fb839d343fa91455ae3aed264257f1b9a..5a6772aaa2bcfa1c34dc384397712f0b7a09b510 100644 (file)
--- 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
diff --git a/dh.c b/dh.c
index e708ff78b670656357bde1a504cf295fb2beeb29..02b9a40816e0d9c7c10b441fd1b21eb63b85759e 100644 (file)
--- 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);
This page took 0.042512 seconds and 5 git commands to generate.