]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
[svn] - forgot to do something
authornenolod <redacted>
Fri, 6 Jul 2007 07:56:14 +0000 (00:56 -0700)
committernenolod <redacted>
Fri, 6 Jul 2007 07:56:14 +0000 (00:56 -0700)
ChangeLog
extensions/ip_cloaking.c
include/serno.h

index a818435770e3d748478e6742e6827ab36824a17f..08a341c9c4987235cdf012e0fc614f3afa78d187 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+nenolod     2007/07/06 07:54:54 UTC    (20070706-3524)
+  Log:
+  - fix a possible problem with ipv6
+  
+
+  Changes:     Modified:
+  +4 -0                trunk/extensions/ip_cloaking.c (File Modified) 
+
+
 nenolod     2007/07/06 07:48:28 UTC    (20070706-3522)
   Log:
   - new ip cloaking module
index e7598bb882bb0226e9d4a5c1e5675cb6b8003526..5b9c5f420f1c8e9a8dca2df5fe4e6e99c43267ad 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: ip_cloaking.c 3524 2007-07-06 07:54:54Z nenolod $ */
+/* $Id: ip_cloaking.c 3526 2007-07-06 07:56:14Z nenolod $ */
 
 #include "stdinc.h"
 #include "modules.h"
@@ -42,7 +42,7 @@ mapi_hfn_list_av1 ip_cloaking_hfnlist[] = {
 };
 
 DECLARE_MODULE_AV1(ip_cloaking, _modinit, _moddeinit, NULL, NULL,
-                       ip_cloaking_hfnlist, "$Revision: 3524 $");
+                       ip_cloaking_hfnlist, "$Revision: 3526 $");
 
 static void
 distribute_hostchange(struct Client *client)
@@ -109,7 +109,10 @@ do_host_cloak_ip(const char *inbuf, char *outbuf)
        tptr = strrchr(buf, '.');
 
        if (tptr == NULL)
+       {
+               strncpy(outbuf, inbuf, HOSTLEN);
                return;
+       }
 
        *tptr++ = '\0';
 
index b73588ea0062fd6eae7d2e9cd3fc6e143a1422c6..3e0f4aad2a7c8455111412972e8cecb2e206f1ff 100644 (file)
@@ -1 +1 @@
-#define SERNO "20070706-3522"
+#define SERNO "20070706-3524"