]> git.sur5r.net Git - openldap/commitdiff
cleanup
authorPierangelo Masarati <ando@openldap.org>
Sat, 10 Sep 2005 19:20:14 +0000 (19:20 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 10 Sep 2005 19:20:14 +0000 (19:20 +0000)
libraries/liblutil/passwd.c

index 8f6fda6129ccbed43d772e5d594980255de2cfa3..23d001f7d5aa5d4843fc704a6a879bd4f27c4194 100644 (file)
@@ -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);
                }
        }