mirror of
https://github.com/moparisthebest/sslh
synced 2024-11-30 21:12:15 -05:00
Fix regex probes always matching (#19)
This commit is contained in:
parent
6fb234f85e
commit
7876bddff3
2
probe.c
2
probe.c
@ -229,7 +229,7 @@ static int regex_probe(const char *p, int len, struct proto *proto)
|
|||||||
for (; *probe && regexec(*probe, p, 0, &pos, REG_STARTEND); probe++)
|
for (; *probe && regexec(*probe, p, 0, &pos, REG_STARTEND); probe++)
|
||||||
/* try them all */;
|
/* try them all */;
|
||||||
|
|
||||||
return (probe != NULL);
|
return (*probe != NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user