summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2001-10-08 16:15:48 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2001-10-08 16:15:48 +0000
commit8ca4073e2b58a083fbf4f52d38b25a668ebf9e9a (patch)
tree833ed506dcffec77a29eacaa3212304dc8c18858
parentf8ed01d7d79573ba55f0679dd8b58c070d2b33eb (diff)
use correct family for -b option
-rw-r--r--usr.bin/ssh/sshconnect.c4
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);