diff options
| author | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2004-11-22 11:10:04 +0000 |
|---|---|---|
| committer | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2004-11-22 11:10:04 +0000 |
| commit | ebd83647a4510b0cfa378f89f8e113726c2ec9e7 (patch) | |
| tree | 77f96edfe15e3ce115171109f1b4871fe17e679b /libexec | |
| parent | 4cbc4ad64461cb743e9b88fadf89db15932f8160 (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 9f575bff86bf..87aeb742f817 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -866,7 +866,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 */ @@ -875,12 +875,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; |
