Committer  : entrope
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Branch tags: u2_10_12_branch
Commit time: 2006-06-06 00:36:27 UTC

Modified files:
  Tag: u2_10_12_branch
     ChangeLog ircd/s_auth.c

Log message:

Clear "DNS request pending" flag when aborting a DNS lookup.

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.710.2.106 ircu2.10/ChangeLog:1.710.2.107
--- ircu2.10/ChangeLog:1.710.2.106      Tue May 30 19:43:00 2006
+++ ircu2.10/ChangeLog  Mon Jun  5 17:36:17 2006
@@ -1,3 +1,8 @@
+2006-06-05  Michael Poole <[EMAIL PROTECTED]>
+
+       * ircd/s_auth.c (auth_timeout_callback): Clear AR_DNS_PENDING when
+       destroying the lookup and reporting DNS failure.
+
 2006-05-28  Michael Poole <[EMAIL PROTECTED]>
 
        * 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 <[EMAIL PROTECTED]>
 
Index: ircu2.10/ircd/s_auth.c
diff -u ircu2.10/ircd/s_auth.c:1.37.2.15 ircu2.10/ircd/s_auth.c:1.37.2.16
--- ircu2.10/ircd/s_auth.c:1.37.2.15    Wed May 24 20:14:13 2006
+++ ircu2.10/ircd/s_auth.c      Mon Jun  5 17:36:17 2006
@@ -31,7 +31,7 @@
  */
 /** @file
  * @brief Implementation of DNS and ident lookups.
- * @version $Id: s_auth.c,v 1.37.2.15 2006/05/25 03:14:13 entrope Exp $
+ * @version $Id: s_auth.c,v 1.37.2.16 2006/06/06 00:36:17 entrope Exp $
  */
 #include "config.h"
 
@@ -792,6 +792,7 @@
 
     /* 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);
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to