Fix error causing misbehavior when client never sends anything.
authorMichael Poole <mdpoole@troilus.org>
Thu, 18 May 2006 03:50:07 +0000 (03:50 +0000)
committerMichael Poole <mdpoole@troilus.org>
Thu, 18 May 2006 03:50:07 +0000 (03:50 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1658 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/s_auth.c

index 569a131effbc8724887bfe2e22a730a5a9b2b2c2..97e3e50ab4aee0c914c48e7f11a9abd94645960e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2006-05-17  Michael Poole <mdpoole@troilus.org>
+
+       * ircd/s_auth.c (auth_ping_timeout): Fix off-by-one error.
+
 2006-05-17  Michael Poole <mdpoole@troilus.org>
 
        * ircd/Makefile.in (install-*): Install convert-conf.  Install
index 34baf898e7d98b6d45f45c94635ef2fc7f94d4e6..a9fe0cd7b576effdb7db04ff96cf75c76af55aaf 100644 (file)
@@ -734,7 +734,7 @@ int auth_ping_timeout(struct Client *cptr)
   auth = cli_auth(cptr);
 
   /* Check for a user-controlled timeout. */
-  for (flag = 0; flag < AR_LAST_SCAN; ++flag) {
+  for (flag = 0; flag <= AR_LAST_SCAN; ++flag) {
     if (FlagHas(&auth->flags, flag)) {
       /* Display message if they have sent a NICK and a USER but no
        * nospoof PONG.