From 200a0ec34a7225ca3c2dd55b4a29f55793ced5f8 Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Thu, 12 Aug 2010 13:14:46 -0600 Subject: use strcasecmp with ptype and type->bv_val both ptype and type->bv_val are properly null terminated strings --- ldap/servers/slapd/entry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldap/servers/slapd/entry.c b/ldap/servers/slapd/entry.c index 30eb141e..3f956bc6 100644 --- a/ldap/servers/slapd/entry.c +++ b/ldap/servers/slapd/entry.c @@ -249,7 +249,7 @@ str2entry_fast( const char *rawdn, char *s, int flags, int read_stateinfo ) /* * We cache some stuff as we go around the loop. */ - if((ptype==NULL)||(PL_strncasecmp(type.bv_val,ptype,type.bv_len) != 0)) + if((ptype==NULL)||(PL_strcasecmp(type.bv_val,ptype) != 0)) { slapi_ch_free_string(&ptype); ptype=PL_strndup(type.bv_val, type.bv_len); -- cgit