Committer  : entrope
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Branch tags: u2_10_12_branch
Commit time: 2006-06-08 01:58:46 UTC

Modified files:
  Tag: u2_10_12_branch
     ircd/s_auth.c ChangeLog

Log message:

Fix ping timeout handling for outbound server connections.

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.710.2.107 ircu2.10/ChangeLog:1.710.2.108
--- ircu2.10/ChangeLog:1.710.2.107      Mon Jun  5 17:36:17 2006
+++ ircu2.10/ChangeLog  Wed Jun  7 18:58:36 2006
@@ -1,3 +1,8 @@
+2006-06-07  Michael Poole <[EMAIL PROTECTED]>
+
+       * ircd/s_auth.c (auth_ping_timeout): If the client never had an
+       auth request, kill them on ping timeout.
+
 2006-06-05  Michael Poole <[EMAIL PROTECTED]>
 
        * ircd/s_auth.c (auth_timeout_callback): Clear AR_DNS_PENDING when
Index: ircu2.10/ircd/s_auth.c
diff -u ircu2.10/ircd/s_auth.c:1.37.2.16 ircu2.10/ircd/s_auth.c:1.37.2.17
--- ircu2.10/ircd/s_auth.c:1.37.2.16    Mon Jun  5 17:36:17 2006
+++ ircu2.10/ircd/s_auth.c      Wed Jun  7 18:58:36 2006
@@ -31,7 +31,7 @@
  */
 /** @file
  * @brief Implementation of DNS and ident lookups.
- * @version $Id: s_auth.c,v 1.37.2.16 2006/06/06 00:36:17 entrope Exp $
+ * @version $Id: s_auth.c,v 1.37.2.17 2006/06/08 01:58:36 entrope Exp $
  */
 #include "config.h"
 
@@ -733,6 +733,11 @@
 
   auth = cli_auth(cptr);
 
+  /* Check whether the auth request is gone (more likely, it never
+   * existed, as in an outbound server connection). */
+  if (!auth)
+      return exit_client_msg(cptr, cptr, &me, "Registration Timeout");
+
   /* Check for a user-controlled timeout. */
   for (flag = 0; flag <= AR_LAST_SCAN; ++flag) {
     if (FlagHas(&auth->flags, flag)) {
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to