Bugzilla – Attachment 1345 Details for
Bug 1357
SOCKS proxy attempts fail to some servers due to DNS timeouts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch
patch (text/plain), 724 bytes, created by
Jamie Nicolson
on 2007-09-04 11:35:16 AEST
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Jamie Nicolson
Created:
2007-09-04 11:35:16 AEST
Size:
724 bytes
patch
obsolete
>--- channels.c.orig 2007-09-03 18:32:25.000000000 -0700 >+++ channels.c.new 2007-09-03 18:32:58.000000000 -0700 >@@ -2720,16 +2720,13 @@ > static int > connect_to(const char *host, u_short port) > { >- struct addrinfo hints, *ai, *aitop; >+ struct addrinfo *ai, *aitop; > char ntop[NI_MAXHOST], strport[NI_MAXSERV]; > int gaierr; > int sock = -1; > >- memset(&hints, 0, sizeof(hints)); >- hints.ai_family = IPv4or6; >- hints.ai_socktype = SOCK_STREAM; > snprintf(strport, sizeof strport, "%d", port); >- if ((gaierr = getaddrinfo(host, strport, &hints, &aitop)) != 0) { >+ if ((gaierr = getaddrinfo(host, strport, NULL, &aitop)) != 0) { > error("connect_to %.100s: unknown host (%s)", host, > gai_strerror(gaierr)); > return -1;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1357
: 1345