summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/sshconnect2.c
diff options
context:
space:
mode:
authorKevin Steves <stevesk@cvs.openbsd.org>2001-01-20 18:20:30 +0000
committerKevin Steves <stevesk@cvs.openbsd.org>2001-01-20 18:20:30 +0000
commit11b8520b755fb2e0709f0e87093062f4a66d27bf (patch)
treea6caea2f7eb47fed35aece8b923a8f918b8a6d70 /usr.bin/ssh/sshconnect2.c
parent686bb3c8047e468eeccd976e92ab3112d49edc95 (diff)
dh_new_group() does not return NULL. ok markus@
Diffstat (limited to 'usr.bin/ssh/sshconnect2.c')
-rw-r--r--usr.bin/ssh/sshconnect2.c5
1 files changed, 2 insertions, 3 deletions
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 <openssl/bn.h>
#include <openssl/rsa.h>
@@ -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);