From 66b25875bcc8c09d7feffad884000b6cf73354fc Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Thu, 18 May 2006 03:50:07 +0000 Subject: [PATCH] Fix error causing misbehavior when client never sends anything. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1658 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 4 ++++ ircd/s_auth.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 569a131..97e3e50 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-05-17 Michael Poole + + * ircd/s_auth.c (auth_ping_timeout): Fix off-by-one error. + 2006-05-17 Michael Poole * ircd/Makefile.in (install-*): Install convert-conf. Install diff --git a/ircd/s_auth.c b/ircd/s_auth.c index 34baf89..a9fe0cd 100644 --- a/ircd/s_auth.c +++ b/ircd/s_auth.c @@ -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. -- 2.20.1