diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-02-15 13:33:33 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:51:56 -0500 |
commit | f2e88ab7cf2010ffeae2f16762f88285d1a77fd8 (patch) | |
tree | c05037926bf7accd60918b21dc422277352a3154 /source4/libcli | |
parent | 048704a7e54573086e7913519d2b72577a34b135 (diff) | |
download | samba-f2e88ab7cf2010ffeae2f16762f88285d1a77fd8.tar.gz samba-f2e88ab7cf2010ffeae2f16762f88285d1a77fd8.tar.xz samba-f2e88ab7cf2010ffeae2f16762f88285d1a77fd8.zip |
r13506: zero memory as some ASN.1 elements are optional, and we should initialize
them for the internal use...
found by 'make valgrindtest'
metze
(This used to be commit 1db9501c5261a974c6da1938537c7991ff6cfefd)
Diffstat (limited to 'source4/libcli')
-rw-r--r-- | source4/libcli/ldap/ldap_controls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libcli/ldap/ldap_controls.c b/source4/libcli/ldap/ldap_controls.c index f85e4843c1..4a28fa510b 100644 --- a/source4/libcli/ldap/ldap_controls.c +++ b/source4/libcli/ldap/ldap_controls.c @@ -98,7 +98,7 @@ static BOOL decode_server_sort_request(void *mem_ctx, DATA_BLOB in, void **out) if (!lssc) { return False; } - lssc[num] = talloc(lssc, struct ldb_server_sort_control); + lssc[num] = talloc_zero(lssc, struct ldb_server_sort_control); if (!lssc[num]) { return False; } |