passdb: Do not routinely clear the global memory returned by get_global_sam_sid()
authorAndrew Bartlett <abartlet@samba.org>
Tue, 13 May 2014 05:47:03 +0000 (17:47 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 11 Jun 2014 08:18:26 +0000 (10:18 +0200)
commitcda32d4e47aa3efb040eb60f1a0332ea8dd58417
tree8132a1b61a721af132965ce267d0234dbccbe151
parent6da8126a115419587672d16e2440c322a837da6b
passdb: Do not routinely clear the global memory returned by get_global_sam_sid()

This avoids use-after-free errors and tdb database churn.

Andrew Bartlett

Change-Id: If7ab2e24556d9dffc7ad22c0489d665dd75a0cab
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Kamen Mazdrashki <kamenim@samba.org>
source3/passdb/machine_account_secrets.c
source3/passdb/pdb_samba_dsdb.c