diff options
Diffstat (limited to 'dh.c')
-rw-r--r-- | dh.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dh.c,v 1.43 2006/11/06 21:25:28 markus Exp $ */ | 1 | /* $OpenBSD: dh.c,v 1.44 2006/11/07 13:02:07 markus Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2000 Niels Provos. All rights reserved. | 3 | * Copyright (c) 2000 Niels Provos. All rights reserved. |
4 | * | 4 | * |
@@ -254,9 +254,9 @@ dh_new_group_asc(const char *gen, const char *modulus) | |||
254 | if ((dh = DH_new()) == NULL) | 254 | if ((dh = DH_new()) == NULL) |
255 | fatal("dh_new_group_asc: DH_new"); | 255 | fatal("dh_new_group_asc: DH_new"); |
256 | 256 | ||
257 | if (BN_hex2bn(&dh->p, modulus) == NULL) | 257 | if (BN_hex2bn(&dh->p, modulus) == 0) |
258 | fatal("BN_hex2bn p"); | 258 | fatal("BN_hex2bn p"); |
259 | if (BN_hex2bn(&dh->g, gen) == NULL) | 259 | if (BN_hex2bn(&dh->g, gen) == 0) |
260 | fatal("BN_hex2bn g"); | 260 | fatal("BN_hex2bn g"); |
261 | 261 | ||
262 | return (dh); | 262 | return (dh); |