Commit 46802eee authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Add REG_NOSUB as we only need matched results.

parent 78e4cb57
......@@ -396,7 +396,7 @@ test_substring_filter(
/* compile the regex */
Debug( LDAP_DEBUG_FILTER, "test_substring_filter: regcomp pat: %s\n",
pat, 0, 0 );
if ((rc = regcomp(&re, pat, REG_EXTENDED))) {
if ((rc = regcomp(&re, pat, REG_EXTENDED|REG_NOSUB))) {
char error[512];
regerror(rc, &re, error, sizeof(error));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment