Fix an assertion failure when client endpoint name lookup fails.
authorMichael Poole <mdpoole@troilus.org>
Fri, 7 Apr 2006 04:02:26 +0000 (04:02 +0000)
committerMichael Poole <mdpoole@troilus.org>
Fri, 7 Apr 2006 04:02:26 +0000 (04:02 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1643 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/s_auth.c

index d05c2b58a31a8fe4014c2dbdb9a6aad9f9f1ddb8..87f490198905c928fb110112b2bb414c3b57263f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-04-06  Michael Poole <mdpoole@troilus.org>
+
+       * 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 <mdpoole@troilus.org>
 
        * ircd/ircd_snprintf.c: Use SIZEOF_LONG_LONG (which is 0 for
index bbd17f4c6926433ffda659f28246774137e366c5..d90896ddf27f1b6d41d1634317ae823fab257059 100644 (file)
@@ -906,7 +906,6 @@ void start_auth(struct Client* client)
   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 @@ void start_auth(struct Client* client)
     start_iauth_query(auth);
   }
 
+  /* Add client to GlobalClientList. */
+  add_client_to_list(client);
+
   /* Check which auth events remain pending. */
   check_auth_finished(auth, 0);
 }