From: Michael Poole Date: Fri, 20 Jan 2012 02:48:30 +0000 (-0500) Subject: Move DNS and auth lookups after starting IAuth. X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=commitdiff_plain;h=3cfdd224928b767bf33e7de2507b6cad3bcfe3ba Move DNS and auth lookups after starting IAuth. 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. --- diff --git a/ircd/s_auth.c b/ircd/s_auth.c index 2a00dd1..ff245d6 100644 --- a/ircd/s_auth.c +++ b/ircd/s_auth.c @@ -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);