Committer  : entrope
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Commit time: 2006-04-07 04:02:36 UTC

Modified files:
     ChangeLog ircd/s_auth.c

Log message:

Fix an assertion failure when client endpoint name lookup fails.

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.771 ircu2.10/ChangeLog:1.772
--- ircu2.10/ChangeLog:1.771    Thu Apr  6 20:56:22 2006
+++ ircu2.10/ChangeLog  Thu Apr  6 21:02:26 2006
@@ -1,5 +1,10 @@
 2006-04-06  Michael Poole <[EMAIL PROTECTED]>
 
+       * ircd/s_auth.c (start_auth): Add client to list after getting
+       endpoint names (which can apparently fail for some reason).
+
+2006-04-06  Michael Poole <[EMAIL PROTECTED]>
+
        * ircd/ircd_snprintf.c: Use SIZEOF_LONG_LONG (which is 0 for
        unknown types) instead of the never-defined HAVE_LONG_LONG.
 
Index: ircu2.10/ircd/s_auth.c
diff -u ircu2.10/ircd/s_auth.c:1.40 ircu2.10/ircd/s_auth.c:1.41
--- ircu2.10/ircd/s_auth.c:1.40 Thu Apr  6 20:27:50 2006
+++ ircu2.10/ircd/s_auth.c      Thu Apr  6 21:02:26 2006
@@ -31,7 +31,7 @@
  */
 /** @file
  * @brief Implementation of DNS and ident lookups.
- * @version $Id: s_auth.c,v 1.40 2006/04/07 03:27:50 entrope Exp $
+ * @version $Id: s_auth.c,v 1.41 2006/04/07 04:02:26 entrope Exp $
  */
 #include "config.h"
 
@@ -906,7 +906,6 @@
   if (cli_fd(client) > HighestFd)
     HighestFd = cli_fd(client);
   LocalClientArray[cli_fd(client)] = client;
-  add_client_to_list(client);
   socket_events(&(cli_socket(client)), SOCK_ACTION_SET | SOCK_EVENT_READABLE);
 
   /* Allocate the AuthRequest. */
@@ -948,6 +947,9 @@
     start_iauth_query(auth);
   }
 
+  /* Add client to GlobalClientList. */
+  add_client_to_list(client);
+
   /* Check which auth events remain pending. */
   check_auth_finished(auth, 0);
 }
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to