Bugzilla – Attachment 255 Details for
Bug 515
BindAddress and -b not working
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fixed patch
gai-passive-fix.diff (text/plain), 808 bytes, created by
Damien Miller
on 2003-03-24 13:34:50 AEDT
(
hide
)
Description:
Fixed patch
Filename:
MIME Type:
Creator:
Damien Miller
Created:
2003-03-24 13:34:50 AEDT
Size:
808 bytes
patch
obsolete
>Index: openbsd-compat/fake-getaddrinfo.c >=================================================================== >RCS file: /var/cvs/openssh/openbsd-compat/fake-getaddrinfo.c,v >retrieving revision 1.4 >diff -u -r1.4 fake-getaddrinfo.c >--- openbsd-compat/fake-getaddrinfo.c 24 Feb 2003 01:35:09 -0000 1.4 >+++ openbsd-compat/fake-getaddrinfo.c 24 Mar 2003 02:33:48 -0000 >@@ -71,6 +71,7 @@ > struct in_addr in; > int i; > long int port; >+ u_long addr; > > port = 0; > if (servname != NULL) { >@@ -86,7 +87,10 @@ > } > > if (hints && hints->ai_flags & AI_PASSIVE) { >- if (NULL != (*res = malloc_ai(port, htonl(0x00000000)))) >+ addr = htonl(0x00000000); >+ if (hostname && inet_aton(hostname, &in) != 0) >+ addr = in.s_addr; >+ if (NULL != (*res = malloc_ai(port, addr))) > return 0; > else > return EAI_MEMORY;
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 515
:
253
|
254
| 255