diff options
author | Rich Megginson <rmeggins@redhat.com> | 2010-08-12 13:14:46 -0600 |
---|---|---|
committer | Rich Megginson <rmeggins@redhat.com> | 2010-08-31 13:35:54 -0600 |
commit | 200a0ec34a7225ca3c2dd55b4a29f55793ced5f8 (patch) | |
tree | 6f8617f37f59962fe9439045a2fd21743824c621 /ldap | |
parent | a8b4047ae525c77249282fb4dd3f43290bc5d011 (diff) | |
download | ds-200a0ec34a7225ca3c2dd55b4a29f55793ced5f8.tar.gz ds-200a0ec34a7225ca3c2dd55b4a29f55793ced5f8.tar.xz ds-200a0ec34a7225ca3c2dd55b4a29f55793ced5f8.zip |
use strcasecmp with ptype and type->bv_val
both ptype and type->bv_val are properly null terminated strings
Diffstat (limited to 'ldap')
-rw-r--r-- | ldap/servers/slapd/entry.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |