From 7c117e37da20ba0ac5ad3f24e8427def53629608 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Tue, 4 Apr 2006 03:20:33 +0000 Subject: [PATCH] tool_bind(): Do not use pointer to out-of-scope variable (ITS#4434, ppolicy) --- clients/tools/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5