]> git.ipfire.org Git - thirdparty/samba.git/commit
s4:kdc: Consistently zero HDB structures
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 10 Aug 2023 04:35:52 +0000 (16:35 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 14 Aug 2023 04:57:34 +0000 (04:57 +0000)
commit7e496d774cd7264cf79e95ddc8d9e0e7bf45cb4b
treee37c7034e3051519852688fa09b216e9499c8db4
parent75a1beeea8593fa2c98f4d798ddbf28d743ad095
s4:kdc: Consistently zero HDB structures

To these conversion functions we sometimes pass malloc-allocated HDB
structures, which we free afterwards if conversion fails. If parts of
these structures are still uninitialized when we try to free them, all
sorts of fun things can result.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/kdc/sdb_to_hdb.c