From 287310b7b11a75a8e6428d0b538cfd4fb52ddc43 Mon Sep 17 00:00:00 2001 From: pk910 Date: Fri, 9 Sep 2011 02:37:58 +0200 Subject: [PATCH] fixed make_banmask (do not use a single * as zero auth mask) --- tools.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.20.1