1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/source4/dsdb/kcc
Andrew Bartlett 2e1ab13f6e s4-dsdb: Use tmp_ctx in kccsrv_check_deleted to avoid leaking memory onto part->dn
The confusing use of do_dn as a memory context while legitimate
created a bug when it was copied and modified to search on a DN from
long-term state.

By always using a temporary memory context it is clear what paramter
is the memory context.

This was found based on a log provided by Ricky Nance
<ricky.nance@weaubleau.k12.mo.us>.  Thanks Ricky!

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Fri Aug 17 18:24:10 CEST 2012 on sn-devel-104
2012-08-17 18:24:09 +02:00
..
kcc_connection.c s4-dsdb: Add mem_ctx argument to samdb_ntds_settings_dn 2012-08-14 10:05:14 +02:00
kcc_connection.h kcc_connection invocation_id added to struct 2011-07-14 07:05:10 +10:00
kcc_deleted.c s4-dsdb: Use tmp_ctx in kccsrv_check_deleted to avoid leaking memory onto part->dn 2012-08-17 18:24:09 +02:00
kcc_drs_replica_info.c s4-dsdb: Fix the case for attribute name msDS-hasMasterNCs 2012-03-14 11:59:02 +01:00
kcc_periodic.c s4-kcc: Avoid use-after-free of dn and add tmp_ctx 2012-08-17 16:41:26 +02:00
kcc_service.c lib/param: Create a seperate server role for "active directory domain controller" 2012-06-15 09:18:33 +02:00
kcc_service.h s4-kcc: Remove also deleted objects that are not in the Deleted Object container 2011-12-23 07:57:21 +01:00
kcc_topology.c s4-dsdb: Add mem_ctx argument to samdb_ntds_settings_dn 2012-08-14 10:05:14 +02:00