Skip to content
Snippets Groups Projects
Verified Commit 6ea640df authored by Daniel Winzen's avatar Daniel Winzen
Browse files

Create socket with correct family as given by sockshost

parent e699cfc6
No related branches found
No related tags found
No related merge requests found
Pipeline #213493 passed
......@@ -385,7 +385,7 @@ do_resolve(const char *hostname,
tor_addr_make_unspec(result_addr);
*result_hostname = NULL;
s = tor_open_socket(PF_INET,SOCK_STREAM,IPPROTO_TCP);
s = tor_open_socket(sockshost->family,SOCK_STREAM,IPPROTO_TCP);
if (s<0) {
log_sock_error("creating_socket", -1);
return -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment