]> jfr.im git - solanum.git/commitdiff
[svn] Merge old trunk r2294:
authorjilles <redacted>
Wed, 28 Mar 2007 14:33:50 +0000 (07:33 -0700)
committerjilles <redacted>
Wed, 28 Mar 2007 14:33:50 +0000 (07:33 -0700)
Zero out the varlist passed to substitution_* when rejecting DNSBL clients.

ChangeLog
include/serno.h
src/s_user.c

index a5d1c74d162b95ddb2531a0cbfded3e7d85941b1..3a03d93134477bd2554320c9de5a90627ffd652f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+jilles      2007/03/28 14:30:10 UTC    (20070328-3291)
+  Log:
+  Merge old trunk r2226:
+  If we are connecting outward to a server, check if the
+  server name they sent is the same as what we tried to
+  connect to. Previously such a connection could succeed
+  if there existed connect blocks with the same IP and
+  passwords for the other server name.
+  
+
+  Changes:     Modified:
+  +11 -0       trunk/modules/core/m_server.c (File Modified) 
+
+
 jilles      2007/03/28 14:21:37 UTC    (20070328-3289)
   Log:
   Merge old trunk r2212:
index 17cb958879174c1dbb02948746158aadc1194b2c..fab296b32082c0cbdaa496880f96fe5ddf6463f6 100644 (file)
@@ -1 +1 @@
-#define SERNO "20070328-3289"
+#define SERNO "20070328-3291"
index ed91bdf8e5d1ec6e5f1bb0e49de1d5c69bb0327b..f4ff4b06bd50ff1eb9f5de4ebf1c5878790a34d5 100644 (file)
@@ -21,7 +21,7 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  *  USA
  *
- *  $Id: s_user.c 3255 2007-03-06 14:07:11Z jilles $
+ *  $Id: s_user.c 3293 2007-03-28 14:33:50Z jilles $
  */
 
 #include "stdinc.h"
@@ -433,7 +433,7 @@ register_local_user(struct Client *client_p, struct Client *source_p, const char
                                        source_p->sockhost, source_p->preClient->dnsbl_listed->host);
                else
                {
-                       dlink_list varlist;
+                       dlink_list varlist = { NULL, NULL, 0 };
 
                        substitution_append_var(&varlist, "nick", source_p->name);
                        substitution_append_var(&varlist, "ip", source_p->sockhost);