diff options
author | 1987-12-14 14:25:41 +0000 | |
---|---|---|
committer | 1987-12-14 14:25:41 +0000 | |
commit | a0ea5b56f3e0874bdb32af4033be92792e687aba (patch) | |
tree | 2128333fb949395ce8fe146fdba484ecd0fecf12 | |
parent | 4b6a20999930ab523bb5f38bf780ed43793f6202 (diff) |
Fix fencepost error in resetting timeouts.
Ignore connect requests from unknown servers.
-rw-r--r-- | server/server.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/server/server.c b/server/server.c index 4f519d0..2d04ffe 100644 --- a/server/server.c +++ b/server/server.c @@ -325,7 +325,7 @@ struct sockaddr_in *who; xfree(otherservers); otherservers = temp; /* don't reschedule limbo's timer, so start i=1 */ - for (i = 1; i < nservers - 1; i++) { + for (i = 1; i < nservers; i++) { if (i == me_server_idx) /* don't reset myself */ continue; /* reschedule the timers--we moved otherservers */ @@ -679,6 +679,7 @@ ZServerDesc_t *server; send_stats(who); return; } +#ifdef notdef syslog(LOG_INFO, "disp: new server?"); if (server_register(notice, auth, who) != ZERR_NONE) syslog(LOG_INFO, "new server failed"); @@ -688,6 +689,10 @@ ZServerDesc_t *server; ntohs(who->sin_port)); hello_respond(who, DONT_ADJUST, auth); } +#else + syslog(LOG_INFO, "srv_adisp: server attempt from %s", + inet_ntoa(who->sin_addr)); +#endif /* notdef */ return; } |