fix scheme recognition (ITS#4575)

This commit is contained in:
Pierangelo Masarati 2006-06-13 19:45:11 +00:00
parent 41ceb4af9d
commit 103392b9a3

View File

@ -525,9 +525,11 @@ password_scheme( struct berval *cred, struct berval *sch )
if (cred->bv_val[e]) { if (cred->bv_val[e]) {
int rc; int rc;
rc = lutil_passwd_scheme( cred->bv_val ); rc = lutil_passwd_scheme( cred->bv_val );
if (rc && sch) { if (rc) {
sch->bv_val = cred->bv_val; if (sch) {
sch->bv_len = e; sch->bv_val = cred->bv_val;
sch->bv_len = e;
}
return LDAP_SUCCESS; return LDAP_SUCCESS;
} }
} }