FreeBSD Bugzilla – Attachment 9476 Details for
Bug 19390
non connect virtual hosting support in ftpd daemon
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.07 KB, created by
isv
on 2000-06-20 01:20:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
isv
Created:
2000-06-20 01:20:00 UTC
Size:
1.07 KB
patch
obsolete
>--- ftpd.orig Fri Jun 16 21:04:33 2000 >+++ ftpd.c Fri Jun 16 21:04:27 2000 >@@ -772,6 +772,7 @@ > selecthost(su) > union sockunion *su; > { >+ int find=0; > struct ftphost *hrp; > u_int16_t port; > #ifdef INET6 >@@ -792,11 +793,12 @@ > hrp = thishost = firsthost; /* default */ > port = su->su_port; > su->su_port = 0; >- while (hrp != NULL) { >+ while (hrp != NULL && !find) { > for (hi = hrp->hostinfo; hi != NULL; hi = hi->ai_next) > { >- if (memcmp(su, hi->ai_addr, hi->ai_addrlen) == 0) { >+ if (memcmp(&su->su_sin, hi->ai_addr, hi->ai_addrlen) == 0) { > thishost = hrp; >+ find=1; > break; > } > #ifdef INET6 >@@ -806,6 +808,7 @@ > &((struct sockaddr_in *)hi->ai_addr)->sin_addr, > sizeof(struct in_addr)) == 0)) { > thishost = hrp; >+ find=1; > break; > } > #endif
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 19390
: 9476