diff options
| author | Ken Raeburn <raeburn@mit.edu> | 2000-02-25 20:51:59 +0000 |
|---|---|---|
| committer | Ken Raeburn <raeburn@mit.edu> | 2000-02-25 20:51:59 +0000 |
| commit | 316465cf284923645bbdf2a541e7199d7f3674db (patch) | |
| tree | 40e74de0631489aad0db903a17c6fb6fc5c00c5b /src/kdc/network.c | |
| parent | d2e5db39ff65837c07cdbf5b2669455667678bfb (diff) | |
| download | krb5-316465cf284923645bbdf2a541e7199d7f3674db.tar.gz krb5-316465cf284923645bbdf2a541e7199d7f3674db.tar.xz krb5-316465cf284923645bbdf2a541e7199d7f3674db.zip | |
Fix off-by-one error in previous code, spotted at the last minute.
This is why things weren't working without the loopback addresses,
which showed up last in the list, after the address my client was
trying to use, thus hiding the error.
(I tried to abort the previous checkin, but cvs went ahead with it
despite the "editor session failed" report...hm.)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12071 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/kdc/network.c')
| -rw-r--r-- | src/kdc/network.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/kdc/network.c b/src/kdc/network.c index 05ca79aa9..b725b2798 100644 --- a/src/kdc/network.c +++ b/src/kdc/network.c @@ -187,13 +187,11 @@ foreach_localaddr (data, pass1fn, betweenfn, pass2fn) continue; } -#if 0 /* Access from same host doesn't work if loopback is omitted? */ #ifdef IFF_LOOPBACK /* None of the current callers want loopback addresses. */ if (ifreq.ifr_flags & IFF_LOOPBACK) goto skip; #endif -#endif /* Ignore interfaces that are down. */ if (!(ifreq.ifr_flags & IFF_UP)) goto skip; @@ -391,7 +389,7 @@ const char *prog; signal_requests_hup = 0; } readfds = select_fds; - nfound = select(select_nfds, &readfds, 0, 0, 0); + nfound = select(select_nfds + 1, &readfds, 0, 0, 0); if (nfound == -1) { if (errno == EINTR) continue; |
