mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 17:49:59 -05:00
ITS#7138 smbk5pwd: fix ITS#6955 shadowLastChange
Fix uninitialized keys[1] in shadowLastChange support
This commit is contained in:
parent
917c52014d
commit
4069a34803
1 changed files with 1 additions and 0 deletions
|
|
@ -680,6 +680,7 @@ static int smbk5pwd_exop_passwd(
|
|||
qpw->rs_mods = ml;
|
||||
|
||||
keys = ch_malloc( sizeof(struct berval) * 2);
|
||||
BER_BVZERO( &keys[1] );
|
||||
keys[0].bv_val = ch_malloc( LDAP_PVT_INTTYPE_CHARS(long) );
|
||||
keys[0].bv_len = snprintf(keys[0].bv_val,
|
||||
LDAP_PVT_INTTYPE_CHARS(long),
|
||||
|
|
|
|||
Loading…
Reference in a new issue