diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2006-11-06 21:25:29 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2006-11-06 21:25:29 +0000 |
commit | 248cc77eb5b02c0172d19df9f0759135ff44ec43 (patch) | |
tree | 135f0858ba6a6ef698539e0e3befb8472df942bd /usr.bin/ssh/dh.c | |
parent | 447fa1c6fbfd1e5ab0a02a79637060e0431101f6 (diff) |
add missing checks for openssl return codes; with & ok djm@
Diffstat (limited to 'usr.bin/ssh/dh.c')
-rw-r--r-- | usr.bin/ssh/dh.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/dh.c b/usr.bin/ssh/dh.c index 289ca5954e6..22cb4ee2aba 100644 --- a/usr.bin/ssh/dh.c +++ b/usr.bin/ssh/dh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dh.c,v 1.42 2006/08/03 03:34:42 deraadt Exp $ */ +/* $OpenBSD: dh.c,v 1.43 2006/11/06 21:25:28 markus Exp $ */ /* * Copyright (c) 2000 Niels Provos. All rights reserved. * @@ -251,9 +251,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) == 0) + if (BN_hex2bn(&dh->p, modulus) == NULL) fatal("BN_hex2bn p"); - if (BN_hex2bn(&dh->g, gen) == 0) + if (BN_hex2bn(&dh->g, gen) == NULL) fatal("BN_hex2bn g"); return (dh); |