projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fixed make_banmask (do not use a single * as zero auth mask)
[NeonServV5.git]
/
tools.c
diff --git
a/tools.c
b/tools.c
index 2f8427f6efc70b08eb47cff2dcebd41ed2bb30b8..1fc4be91715427259db63ae895494156ccdd675c 100644
(file)
--- 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)