summaryrefslogtreecommitdiffstats
path: root/ldap/servers/slapd/match.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldap/servers/slapd/match.c')
-rw-r--r--ldap/servers/slapd/match.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldap/servers/slapd/match.c b/ldap/servers/slapd/match.c
index 241b182c..91fa0a8f 100644
--- a/ldap/servers/slapd/match.c
+++ b/ldap/servers/slapd/match.c
@@ -322,7 +322,7 @@ int slapi_matchingrule_is_compat(const char *mr_oid_or_name, const char *syntax_
return 1;
}
for (mr_syntax = mrl->mr_entry->mr_compat_syntax;
- mr_syntax;
+ mr_syntax && *mr_syntax;
mr_syntax++) {
if (!strcmp(*mr_syntax, syntax_oid)) {
return 1;