summaryrefslogtreecommitdiff
path: root/sshconnect.c
diff options
context:
space:
mode:
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 76b1a2703..7c928539e 100644
--- a/sshconnect.c
+++ b/sshconnect.c
@@ -13,7 +13,7 @@
13 */ 13 */
14 14
15#include "includes.h" 15#include "includes.h"
16RCSID("$OpenBSD: sshconnect.c,v 1.113 2001/10/06 11:18:19 markus Exp $"); 16RCSID("$OpenBSD: sshconnect.c,v 1.114 2001/10/08 16:15:47 markus Exp $");
17 17
18#include <openssl/bn.h> 18#include <openssl/bn.h>
19 19
@@ -204,7 +204,7 @@ ssh_create_socket(struct passwd *pw, int privileged, int family)
204 return sock; 204 return sock;
205 205
206 memset(&hints, 0, sizeof(hints)); 206 memset(&hints, 0, sizeof(hints));
207 hints.ai_family = IPv4or6; 207 hints.ai_family = family;
208 hints.ai_socktype = SOCK_STREAM; 208 hints.ai_socktype = SOCK_STREAM;
209 hints.ai_flags = AI_PASSIVE; 209 hints.ai_flags = AI_PASSIVE;
210 gaierr = getaddrinfo(options.bind_address, "0", &hints, &res); 210 gaierr = getaddrinfo(options.bind_address, "0", &hints, &res);