1
0
mirror of https://github.com/moparisthebest/sslh synced 2024-11-24 18:12:17 -05:00

Fix regex probes always matching (#19)

This commit is contained in:
Ondřej Kuzník 2014-04-09 19:01:18 +01:00
parent 6fb234f85e
commit 7876bddff3

View File

@ -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++)
/* try them all */;
return (probe != NULL);
return (*probe != NULL);
}
/*