From: Andreas Schneider Date: Tue, 26 Jul 2022 09:31:54 +0000 (+0200) Subject: s4:dsdb: Burn the memory of hashes returned by samdb_result_hashes() X-Git-Tag: samba-4.17.0rc1~195 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c4ef3dbf738febc595e5b201caaaa8d452bfffe0;p=thirdparty%2Fsamba.git s4:dsdb: Burn the memory of hashes returned by samdb_result_hashes() Signed-off-by: Andreas Schneider Reviewed-by: Stefan Metzmacher --- diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c index a7a93a9a066..112917544a3 100644 --- a/source4/dsdb/common/util.c +++ b/source4/dsdb/common/util.c @@ -508,6 +508,7 @@ unsigned int samdb_result_hashes(TALLOC_CTX *mem_ctx, const struct ldb_message * if (! *hashes) { return 0; } + talloc_keep_secret(*hashes); for (i=0;idata, 16);