From: pk910 Date: Fri, 9 Sep 2011 00:37:58 +0000 (+0200) Subject: fixed make_banmask (do not use a single * as zero auth mask) X-Git-Tag: v5.3~453 X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=commitdiff_plain;h=287310b7b11a75a8e6428d0b538cfd4fb52ddc43 fixed make_banmask (do not use a single * as zero auth mask) --- diff --git a/tools.c b/tools.c index 2f8427f..1fc4be9 100644 --- a/tools.c +++ b/tools.c @@ -452,7 +452,7 @@ char* make_banmask(char *input, char* buffer) { host = p+1; } else if((p = strstr(input, "."))) { host = input; - } else if(*input == '*' && !strstr(input+1, "*")) { + } else if(*input == '*' && input[1] != '\0' && !strstr(input+1, "*")) { //AUTH MASK p = getAuthFakehost(input+1); if(p)