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
1 changed files with 1 additions and 1 deletions

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);
}
/*