diff options
author | 2001-10-08 16:15:47 +0000 | |
---|---|---|
committer | 2001-10-08 16:15:47 +0000 | |
commit | 97a9492cc8d38564311adb93ac65e7685e200a65 (patch) | |
tree | eaa2ecc21a177780b1734a9f716e02ba972d27cb /usr.bin/ssh/sshconnect.c | |
parent | Support the WiseCom iPort 10/100; thanks to Brendan Hiley <ultr0s@mbox.com.au> (diff) | |
download | wireguard-openbsd-97a9492cc8d38564311adb93ac65e7685e200a65.tar.xz wireguard-openbsd-97a9492cc8d38564311adb93ac65e7685e200a65.zip |
use correct family for -b option
Diffstat (limited to 'usr.bin/ssh/sshconnect.c')
-rw-r--r-- | usr.bin/ssh/sshconnect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/sshconnect.c b/usr.bin/ssh/sshconnect.c index b9e6012919a..c73b876d107 100644 --- a/usr.bin/ssh/sshconnect.c +++ b/usr.bin/ssh/sshconnect.c @@ -13,7 +13,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: sshconnect.c,v 1.113 2001/10/06 11:18:19 markus Exp $"); +RCSID("$OpenBSD: sshconnect.c,v 1.114 2001/10/08 16:15:47 markus Exp $"); #include <openssl/bn.h> @@ -200,7 +200,7 @@ ssh_create_socket(struct passwd *pw, int privileged, int family) return sock; memset(&hints, 0, sizeof(hints)); - hints.ai_family = IPv4or6; + hints.ai_family = family; hints.ai_socktype = SOCK_STREAM; hints.ai_flags = AI_PASSIVE; gaierr = getaddrinfo(options.bind_address, "0", &hints, &res); |