From 46802eee0363640a3542e32eb69b1809db59d8ae Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Tue, 24 Aug 1999 04:33:34 +0000 Subject: [PATCH] Add REG_NOSUB as we only need matched results. --- servers/slapd/filterentry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/filterentry.c b/servers/slapd/filterentry.c index f65c8472a8..a6baf16f1a 100644 --- a/servers/slapd/filterentry.c +++ b/servers/slapd/filterentry.c @@ -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)); -- 2.39.5