svn commit: samba r13506 - in
branches/SAMBA_4_0/source/libcli/ldap: .
metze at samba.org
metze at samba.org
Wed Feb 15 13:33:33 GMT 2006
Author: metze
Date: 2006-02-15 13:33:33 +0000 (Wed, 15 Feb 2006)
New Revision: 13506
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=13506
Log:
zero memory as some ASN.1 elements are optional, and we should initialize
them for the internal use...
found by 'make valgrindtest'
metze
Modified:
branches/SAMBA_4_0/source/libcli/ldap/ldap_controls.c
Changeset:
Modified: branches/SAMBA_4_0/source/libcli/ldap/ldap_controls.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/ldap/ldap_controls.c 2006-02-15 04:18:11 UTC (rev 13505)
+++ branches/SAMBA_4_0/source/libcli/ldap/ldap_controls.c 2006-02-15 13:33:33 UTC (rev 13506)
@@ -98,7 +98,7 @@
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;
}
More information about the samba-cvs
mailing list