Committer : entrope
CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Branch tags: u2_10_12_branch
Commit time: 2006-05-18 03:50:17 UTC
Modified files:
Tag: u2_10_12_branch
ChangeLog ircd/s_auth.c
Log message:
Fix error causing misbehavior when client never sends anything.
---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.710.2.103 ircu2.10/ChangeLog:1.710.2.104
--- ircu2.10/ChangeLog:1.710.2.103 Wed May 17 20:48:41 2006
+++ ircu2.10/ChangeLog Wed May 17 20:50:07 2006
@@ -1,5 +1,9 @@
2006-05-17 Michael Poole <[EMAIL PROTECTED]>
+ * ircd/s_auth.c (auth_ping_timeout): Fix off-by-one error.
+
+2006-05-17 Michael Poole <[EMAIL PROTECTED]>
+
* ircd/Makefile.in (install-*): Install convert-conf. Install
umkpasswd when ${BINDIR}/ircd is not a symlink.
Index: ircu2.10/ircd/s_auth.c
diff -u ircu2.10/ircd/s_auth.c:1.37.2.13 ircu2.10/ircd/s_auth.c:1.37.2.14
--- ircu2.10/ircd/s_auth.c:1.37.2.13 Mon May 15 19:34:00 2006
+++ ircu2.10/ircd/s_auth.c Wed May 17 20:50:07 2006
@@ -31,7 +31,7 @@
*/
/** @file
* @brief Implementation of DNS and ident lookups.
- * @version $Id: s_auth.c,v 1.37.2.13 2006/05/16 02:34:00 entrope Exp $
+ * @version $Id: s_auth.c,v 1.37.2.14 2006/05/18 03:50:07 entrope Exp $
*/
#include "config.h"
@@ -734,7 +734,7 @@
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.
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches