mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-31 03:59:34 -05:00
Streamline call to lutil_passwd_scheme
This commit is contained in:
parent
46fab05997
commit
b131aab00e
1 changed files with 1 additions and 5 deletions
|
|
@ -417,11 +417,7 @@ password_scheme( struct berval *cred, struct berval *sch )
|
|||
for(e = 1; cred->bv_val[e] && cred->bv_val[e] != '}'; e++);
|
||||
if (cred->bv_val[e]) {
|
||||
int rc;
|
||||
char *sc = ch_calloc( sizeof(char), e + 2);
|
||||
sc[e + 1] = '\0'; /* terminate string */
|
||||
strncpy( sc, cred->bv_val, e + 1);
|
||||
rc = lutil_passwd_scheme( sc );
|
||||
free( sc );
|
||||
rc = lutil_passwd_scheme( cred->bv_val );
|
||||
if (rc && sch) {
|
||||
sch->bv_val = cred->bv_val;
|
||||
sch->bv_len = e;
|
||||
|
|
|
|||
Loading…
Reference in a new issue