mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 01:29:59 -05:00
Add REG_NOSUB as we only need matched results.
This commit is contained in:
parent
78e4cb57aa
commit
46802eee03
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue