summaryrefslogtreecommitdiff
blob: 1196f1b936e8d8a36fa392fa62472e4f2a8fd809 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/clients/tools/common.c
+++ b/clients/tools/common.c
@@ -1315,8 +1315,8 @@
 	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;