diff options
| author | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2005-02-19 12:12:14 +0000 |
|---|---|---|
| committer | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2005-02-19 12:12:14 +0000 |
| commit | 0aed43d9cd814c15e618843c9029ee1beec2bd2d (patch) | |
| tree | 5bdd208deb4c1add1e6feed75816169864da8008 /libexec | |
| parent | 3148b9662e3a7b46dca1c8adcf6e664e09e3f861 (diff) | |
Notes
Diffstat (limited to 'libexec')
| -rw-r--r-- | libexec/ftpd/ftpd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index 1bba0b161d99..9d063ea6f557 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -875,7 +875,7 @@ selecthost(union sockunion *su) for (hi = hrp->hostinfo; hi != NULL; hi = hi->ai_next) { if (memcmp(su, hi->ai_addr, hi->ai_addrlen) == 0) { thishost = hrp; - break; + goto found; } #ifdef INET6 /* XXX IPv4 mapped IPv6 addr consideraton */ @@ -884,12 +884,13 @@ selecthost(union sockunion *su) &((struct sockaddr_in *)hi->ai_addr)->sin_addr, sizeof(struct in_addr)) == 0)) { thishost = hrp; - break; + goto found; } #endif } hrp = hrp->next; } +found: su->su_port = port; /* setup static variables as appropriate */ hostname = thishost->hostname; |
