summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstevesk <stevesk@openbsd.org>2001-01-20 18:20:29 +0000
committerstevesk <stevesk@openbsd.org>2001-01-20 18:20:29 +0000
commit246b9a516dbc2e9efcea796faf44b8973f8bd9b0 (patch)
treeba301be8d016b118add41370566c3ed7e06560f5
parentfix SIGSEGV from -o ""; problem noted by jehsom@togetherweb.com (diff)
downloadwireguard-openbsd-246b9a516dbc2e9efcea796faf44b8973f8bd9b0.tar.xz
wireguard-openbsd-246b9a516dbc2e9efcea796faf44b8973f8bd9b0.zip
dh_new_group() does not return NULL. ok markus@
-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);