Clear "DNS request pending" flag when aborting a DNS lookup.
authorMichael Poole <mdpoole@troilus.org>
Tue, 6 Jun 2006 00:36:17 +0000 (00:36 +0000)
committerMichael Poole <mdpoole@troilus.org>
Tue, 6 Jun 2006 00:36:17 +0000 (00:36 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1662 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/s_auth.c

index 0d0d6f7a1139c35f663134115e0254180c046744..ba8916516b413617e958438228bfe4689fadfeff 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-06-05  Michael Poole <mdpoole@troilus.org>
+
+       * ircd/s_auth.c (auth_timeout_callback): Clear AR_DNS_PENDING when
+       destroying the lookup and reporting DNS failure.
+
 2006-05-28  Michael Poole <mdpoole@troilus.org>
 
        * doc/readme.features (MAXBANS): Update default value.
@@ -6,7 +11,7 @@
 
        * ircd/m_stats.c (m_stats): Describe the intention so that there
        are not further questions about local opers and remote /stats.
-       Fix places that use cptr instead of cptr.
+       Fix places that use cptr instead of sptr.
 
 2006-05-24  Michael Poole <mdpoole@troilus.org>
 
index 749dbf461bb2352e1af1bd46060e63623653afc0..33e2242db5e6350ec5f68ce1fc6b70de68637d2f 100644 (file)
@@ -792,6 +792,7 @@ static void auth_timeout_callback(struct Event* ev)
 
     /* Likewise if dns lookup failed. */
     if (FlagHas(&auth->flags, AR_DNS_PENDING)) {
+      FlagClr(&auth->flags, AR_DNS_PENDING);
       delete_resolver_queries(auth);
       if (IsUserPort(auth->client))
         sendheader(auth->client, REPORT_FAIL_DNS);