mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
tool_bind(): Do not use pointer to out-of-scope variable (ITS#4434, ppolicy)
This commit is contained in:
parent
e45d11b42f
commit
7c117e37da
@ -1001,8 +1001,8 @@ tool_bind( LDAP *ld )
|
||||
int nsctrls = 0;
|
||||
|
||||
#ifdef LDAP_CONTROL_PASSWORDPOLICYREQUEST
|
||||
LDAPControl c;
|
||||
if ( ppolicy ) {
|
||||
LDAPControl c;
|
||||
c.ldctl_oid = LDAP_CONTROL_PASSWORDPOLICYREQUEST;
|
||||
c.ldctl_value.bv_val = NULL;
|
||||
c.ldctl_value.bv_len = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user