From b076458c6fa8d223c041bf558b93c968e80e6bcc Mon Sep 17 00:00:00 2001 From: nenolod Date: Fri, 6 Jul 2007 00:56:14 -0700 Subject: [PATCH] [svn] - forgot to do something --- ChangeLog | 9 +++++++++ extensions/ip_cloaking.c | 7 +++++-- include/serno.h | 2 +- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index a8184357..08a341c9 100644 --- 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 diff --git a/extensions/ip_cloaking.c b/extensions/ip_cloaking.c index e7598bb8..5b9c5f42 100644 --- a/extensions/ip_cloaking.c +++ b/extensions/ip_cloaking.c @@ -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'; diff --git a/include/serno.h b/include/serno.h index b73588ea..3e0f4aad 100644 --- a/include/serno.h +++ b/include/serno.h @@ -1 +1 @@ -#define SERNO "20070706-3522" +#define SERNO "20070706-3524"