From: Pierangelo Masarati Date: Sat, 10 Sep 2005 19:20:14 +0000 (+0000) Subject: cleanup X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~440 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=52cf1f5f0a912500ec619a29dfb98608471821e3;p=openldap cleanup --- diff --git a/libraries/liblutil/passwd.c b/libraries/liblutil/passwd.c index 8f6fda6129..23d001f7d5 100644 --- a/libraries/liblutil/passwd.c +++ b/libraries/liblutil/passwd.c @@ -209,9 +209,7 @@ static const struct pw_scheme *get_scheme( bv.bv_val = (char *) scheme; for( pws=pw_schemes; pws; pws=pws->next ) { - if( bv.bv_len != pws->s.name.bv_len ) - continue; - if( strncasecmp(bv.bv_val, pws->s.name.bv_val, bv.bv_len ) == 0 ) { + if ( ber_bvstrcasecmp(&bv, &pws->s.name ) == 0 ) { return &(pws->s); } }