Bugzilla – Attachment 622 Details for
Bug 859
getaddrinfo(host, "0", &hints, &res) may take extra cycles
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
eliminate use of getaddrinfo(host, "0", &hints, &res) where getaddrinfo(host, NULL, &hints, &res) is appricable
openssh-3.8.1p1-fix.patch (text/plain), 934 bytes, created by
YOSHIFUJI Hideaki
on 2004-05-02 15:35:45 AEST
(
hide
)
Description:
eliminate use of getaddrinfo(host, "0", &hints, &res) where getaddrinfo(host, NULL, &hints, &res) is appricable
Filename:
MIME Type:
Creator:
YOSHIFUJI Hideaki
Created:
2004-05-02 15:35:45 AEST
Size:
934 bytes
patch
obsolete
>--- openssh-3.8.1p1/sshconnect.c Tue Jan 27 19:21:27 2004 >+++ openssh-3.8.1p1-fix/sshconnect.c Fri Apr 30 11:24:48 2004 >@@ -202,7 +202,7 @@ > hints.ai_socktype = ai->ai_socktype; > hints.ai_protocol = ai->ai_protocol; > hints.ai_flags = AI_PASSIVE; >- gaierr = getaddrinfo(options.bind_address, "0", &hints, &res); >+ gaierr = getaddrinfo(options.bind_address, NULL, &hints, &res); > if (gaierr) { > error("getaddrinfo: %s: %s", options.bind_address, > gai_strerror(gaierr)); >--- openssh-3.8.1p1/canohost.c Wed Mar 31 14:17:54 2004 >+++ openssh-3.8.1p1-fix/canohost.c Fri Apr 30 11:25:03 2004 >@@ -75,7 +75,7 @@ > memset(&hints, 0, sizeof(hints)); > hints.ai_socktype = SOCK_DGRAM; /*dummy*/ > hints.ai_flags = AI_NUMERICHOST; >- if (getaddrinfo(name, "0", &hints, &ai) == 0) { >+ if (getaddrinfo(name, NULL, &hints, &ai) == 0) { > logit("Nasty PTR record \"%s\" is set up for %s, ignoring", > name, ntop); > freeaddrinfo(ai);
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 859
: 622