From f58ea89c20a49224b4be2efc9a24df71a59b1d85 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 26 Jan 2007 02:18:44 +0000 Subject: [PATCH] Must use case-insensitive comparisons on attr types --- servers/slapd/entry.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/servers/slapd/entry.c b/servers/slapd/entry.c index ca2296fee6..dda4e18502 100644 --- a/servers/slapd/entry.c +++ b/servers/slapd/entry.c @@ -207,6 +207,8 @@ str2entry2( char *s, int checkvals ) goto fail; } +#define bvcasematch(bv1, bv2) ( ((bv1)->bv_len == (bv2)->bv_len) && (strncasecmp((bv1)->bv_val, (bv2)->bv_val, (bv1)->bv_len) == 0) ) + /* Make sure all attributes with multiple values are contiguous */ if ( checkvals ) { int j, k; @@ -215,7 +217,7 @@ str2entry2( char *s, int checkvals ) for (i=0; iad_cname ))) { + if ( !ad || ( iad_cname ))) { ad = NULL; rc = slap_bv2ad( type+i, &ad, &text ); -- 2.39.5