Move DNS and auth lookups after starting IAuth.
authorMichael Poole <mdpoole@troilus.org>
Fri, 20 Jan 2012 02:48:30 +0000 (21:48 -0500)
committerMichael Poole <mdpoole@troilus.org>
Fri, 20 Jan 2012 02:48:30 +0000 (21:48 -0500)
When start_dns_query() ran before start_iauth_query(), clients from
localhost would not have their IAuth 'N' message sent because ircu had
not started the IAuth query for that client.

ircd/s_auth.c

index 2a00dd1a781c46a4e180fd54da9de05de54266ed..ff245d6d65423bcb3f30e82767a803294d1b8dc1 100644 (file)
@@ -1020,12 +1020,6 @@ void start_auth(struct Client* client)
   }
   auth->port = remote.port;
 
-  /* Try to start DNS lookup. */
-  start_dns_query(auth);
-
-  /* Try to start ident lookup. */
-  start_auth_query(auth);
-
   /* Set required client inputs for users. */
   if (IsUserPort(client)) {
     cli_user(client) = make_user(client);
@@ -1037,6 +1031,12 @@ void start_auth(struct Client* client)
     start_iauth_query(auth);
   }
 
+  /* Try to start DNS lookup. */
+  start_dns_query(auth);
+
+  /* Try to start ident lookup. */
+  start_auth_query(auth);
+
   /* Add client to GlobalClientList. */
   add_client_to_list(client);