-/* $Id: ip_cloaking.c 3522 2007-07-06 07:48:28Z nenolod $ */
+/* $Id: ip_cloaking.c 3526 2007-07-06 07:56:14Z nenolod $ */
#include "stdinc.h"
#include "modules.h"
};
DECLARE_MODULE_AV1(ip_cloaking, _modinit, _moddeinit, NULL, NULL,
- ip_cloaking_hfnlist, "$Revision: 3522 $");
+ ip_cloaking_hfnlist, "$Revision: 3526 $");
static void
distribute_hostchange(struct Client *client)
strncpy(buf, inbuf, HOSTLEN);
tptr = strrchr(buf, '.');
+
+ if (tptr == NULL)
+ {
+ strncpy(outbuf, inbuf, HOSTLEN);
+ return;
+ }
+
*tptr++ = '\0';
snprintf(outbuf, HOSTLEN, "%s.%x", buf, accum);