summaryrefslogtreecommitdiff
path: root/sshconnect.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-10-10 15:04:41 +1000
committerDamien Miller <djm@mindrot.org>2001-10-10 15:04:41 +1000
commit7ea6f204b67039e09c79dfb3049a88806e5d1ea3 (patch)
treed0890c12be3aec70ac5b3f5b4c8ea6dc4cbb520d /sshconnect.c
parentd3c04b90e478c664635d66fb4e07bb3236c62cc1 (diff)
- markus@cvs.openbsd.org 2001/10/08 16:15:47
[sshconnect.c] use correct family for -b option
Diffstat (limited to 'sshconnect.c')
-rw-r--r--sshconnect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sshconnect.c b/sshconnect.c
index 76b1a270..7c928539 100644
--- a/sshconnect.c
+++ b/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>
@@ -204,7 +204,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);