s4:kdc: make the logic between ZERO_STRUCTP(entry_ex) and sdb_free_entry(entry_ex...
commit788ccb8cb99f56128331d98ec08c521547b98232
authorStefan Metzmacher <metze@samba.org>
Tue, 8 Feb 2022 15:50:14 +0000 (8 16:50 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 24 Mar 2022 09:19:33 +0000 (24 09:19 +0000)
tree597c5166c9a0ffb4c783288535d6780133839c94
parent2323f9d2e23fd017884c68002fa376d27ac9074e
s4:kdc: make the logic between ZERO_STRUCTP(entry_ex) and sdb_free_entry(entry_ex) clearer

samba_kdc_[trust_]message2entry() always starts with
ZERO_STRUCTP(entry_ex) and cleans up on error with
sdb_free_entry(entry_ex), leaving a cleared structure again.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14054

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/kdc/db-glue.c