From: Hallvard Furuseth Date: Tue, 4 Apr 2006 03:20:33 +0000 (+0000) Subject: tool_bind(): Do not use pointer to out-of-scope variable (ITS#4434, ppolicy) X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~32 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7c117e37da20ba0ac5ad3f24e8427def53629608;p=openldap tool_bind(): Do not use pointer to out-of-scope variable (ITS#4434, ppolicy) --- diff --git a/clients/tools/common.c b/clients/tools/common.c index 613bfb7b1a..0369e3dcb7 100644 --- a/clients/tools/common.c +++ b/clients/tools/common.c @@ -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;