From 11b8520b755fb2e0709f0e87093062f4a66d27bf Mon Sep 17 00:00:00 2001 From: Kevin Steves Date: Sat, 20 Jan 2001 18:20:30 +0000 Subject: dh_new_group() does not return NULL. ok markus@ --- usr.bin/ssh/sshconnect2.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'usr.bin/ssh/sshconnect2.c') diff --git a/usr.bin/ssh/sshconnect2.c b/usr.bin/ssh/sshconnect2.c index 8321c9eb755..88df3aaf7c8 100644 --- a/usr.bin/ssh/sshconnect2.c +++ b/usr.bin/ssh/sshconnect2.c @@ -23,7 +23,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: sshconnect2.c,v 1.35 2001/01/04 22:21:26 markus Exp $"); +RCSID("$OpenBSD: sshconnect2.c,v 1.36 2001/01/20 18:20:29 stevesk Exp $"); #include #include @@ -332,8 +332,7 @@ ssh_dhgex_client(Kex *kex, char *host, struct sockaddr *hostaddr, if ((g = BN_new()) == NULL) fatal("BN_new"); packet_get_bignum2(g, &dlen); - if ((dh = dh_new_group(g, p)) == NULL) - fatal("dh_new_group"); + dh = dh_new_group(g, p); dh_gen_key(dh); -- cgit v1.2.3