tool_bind(): Do not use pointer to out-of-scope variable (ITS#4434, ppolicy)

This commit is contained in:
Hallvard Furuseth 2006-04-04 03:20:33 +00:00
parent e45d11b42f
commit 7c117e37da

View File

@ -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;