git.samba.org
/
import
/
samba-svnimport.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33c84dd
)
r12879: Don't use non-static array initialisers.
author
James Peach
<jpeach@samba.org>
Fri, 13 Jan 2006 00:12:26 +0000
(
00:12
+0000)
committer
James Peach
<jpeach@samba.org>
Fri, 13 Jan 2006 00:12:26 +0000
(
00:12
+0000)
source/libads/ldap.c
patch
|
blob
|
history
diff --git
a/source/libads/ldap.c
b/source/libads/ldap.c
index e4c74704b479d7b42577c52ffe8313029745c238..22ca2eda978946b9282e46f05e4bcbbbd5f5603d 100644
(file)
--- a/
source/libads/ldap.c
+++ b/
source/libads/ldap.c
@@
-1860,8
+1860,9
@@
ADS_STATUS ads_leave_realm(ADS_STRUCT *ads, const char *hostname)
char *hostnameDN, *host;
int rc;
LDAPControl ldap_control;
- LDAPControl * pldap_control[
] = {&ldap_control, 0
};
+ LDAPControl * pldap_control[
2] = {NULL, NULL
};
+ pldap_control[0] = &ldap_control;
memset(&ldap_control, 0, sizeof(LDAPControl));
ldap_control.ldctl_oid = (char *)LDAP_SERVER_TREE_DELETE_OID;