Merge cffd3811f2ddb0757b8d20acbce994689e7a842a into 00d5872aa176a23588f143551aa4b7e8dd1c0ca6

This commit is contained in:
Jonathan McCrohan 2017-04-22 19:18:28 +00:00 committed by GitHub
commit 9ba7554372

View File

@ -268,7 +268,7 @@ static int regex_probe(const char *p, int len, struct proto *proto)
regex_t **probe = proto->data;
regmatch_t pos = { 0, len };
for (; *probe && regexec(*probe, p, 0, &pos, REG_STARTEND); probe++)
for (; *probe && regexec(*probe, p, 0, &pos, 0); probe++)
/* try them all */;
return (*probe != NULL);