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]) {
int rc;
rc = lutil_passwd_scheme( cred->bv_val );
if (rc && sch) {
sch->bv_val = cred->bv_val;
sch->bv_len = e;
if (rc) {
if (sch) {
sch->bv_val = cred->bv_val;
sch->bv_len = e;
}
return LDAP_SUCCESS;
}
}