Committer  : entrope
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Commit time: 2006-05-16 03:37:48 UTC

Modified files:
     ChangeLog ircd/s_auth.c

Log message:

Only check passwords on user ports.

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.774 ircu2.10/ChangeLog:1.775
--- ircu2.10/ChangeLog:1.774    Mon May 15 18:39:05 2006
+++ ircu2.10/ChangeLog  Mon May 15 20:37:38 2006
@@ -1,3 +1,8 @@
+2006-05-15  Michael Poole <[EMAIL PROTECTED]>
+
+       * ircd/s_auth.c (check_auth_finished): Only check passwords on
+       user ports.
+
 2006-05-14  Michael Poole <[EMAIL PROTECTED]>
 
        * doc/example.conf (Connect): Mention the vhost option.
Index: ircu2.10/ircd/s_auth.c
diff -u ircu2.10/ircd/s_auth.c:1.42 ircu2.10/ircd/s_auth.c:1.43
--- ircu2.10/ircd/s_auth.c:1.42 Sun May 14 12:31:30 2006
+++ ircu2.10/ircd/s_auth.c      Mon May 15 20:37:38 2006
@@ -31,7 +31,7 @@
  */
 /** @file
  * @brief Implementation of DNS and ident lookups.
- * @version $Id: s_auth.c,v 1.42 2006/05/14 19:31:30 entrope Exp $
+ * @version $Id: s_auth.c,v 1.43 2006/05/16 03:37:38 entrope Exp $
  */
 #include "config.h"
 
@@ -383,11 +383,13 @@
    * as possible so that iauth's challenge/response (which uses PASS
    * for responses) is not confused with the client's password.
    */
-  if (!FlagHas(&auth->flags, AR_PASSWORD_CHECKED))
+  if (IsUserPort(auth->client)
+      && !FlagHas(&auth->flags, AR_PASSWORD_CHECKED))
   {
     struct ConfItem *aconf;
 
     aconf = cli_confs(auth->client)->value.aconf;
+    assert(aconf != NULL);
     if (!EmptyString(aconf->passwd)
         && strcmp(cli_passwd(auth->client), aconf->passwd))
     {
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to