summaryrefslogtreecommitdiffstats
path: root/ldap/servers/slapd/match.c
diff options
context:
space:
mode:
authorRich Megginson <rmeggins@redhat.com>2010-02-22 13:59:01 -0700
committerRich Megginson <rmeggins@redhat.com>2010-02-23 14:35:13 -0700
commitc0fd0171fed64b026bc80bad872b6641a0c4d86f (patch)
treea40a8a6327b6a9ed2b7604461bd0f241e65f10a7 /ldap/servers/slapd/match.c
parentc26ba79b19bb580a6fb8bf8d6d096bf888d197d6 (diff)
downloadds-c0fd0171fed64b026bc80bad872b6641a0c4d86f.tar.gz
ds-c0fd0171fed64b026bc80bad872b6641a0c4d86f.tar.xz
ds-c0fd0171fed64b026bc80bad872b6641a0c4d86f.zip
crash looking up compat syntax; numeric string syntax using integer; make octet string ordering work correctly
https://bugzilla.redhat.com/show_bug.cgi?id=559315 Resolves: bug 559315 Bug Description: Searching some attributes are now case sensitive when they were previously case-insensitive Reviewed by: nhosoi (Thanks!) Branch: HEAD Fix Description: slapi_matchingrule_is_compat() was not checking for NULL; the matching rule syntax plugin was registering with the INTEGER syntax oid; the bin_filter_ava() function needs to be ordering aware to implement the octetStringOrderingMatch; in default_mr_filter_create(), make sure the requested matching rule is provided by the given plugin Platforms tested: RHEL5 x86_64 Flag Day: no Doc impact: no
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;