diff options
author | dtucker <dtucker> | 2006-11-07 23:01:36 +0000 |
---|---|---|
committer | dtucker <dtucker> | 2006-11-07 23:01:36 +0000 |
commit | 253ed92e3ac44201dae97edb23b60507445404e6 (patch) | |
tree | 537835d1baa0f262708c37ff6ab7e2b0fa6e8bec /dh.c | |
parent | 5eca803600fd56df3dc7980697c43d6b92cf8f13 (diff) | |
download | openssh-253ed92e3ac44201dae97edb23b60507445404e6.tar.gz |
- markus@cvs.openbsd.org 2006/11/07 13:02:07
[dh.c]
BN_hex2bn returns int; from dtucker@
Diffstat (limited to 'dh.c')
-rw-r--r-- | dh.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: dh.c,v 1.43 2006/11/06 21:25:28 markus Exp $ */ +/* $OpenBSD: dh.c,v 1.44 2006/11/07 13:02:07 markus Exp $ */ /* * Copyright (c) 2000 Niels Provos. All rights reserved. * @@ -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); |