]> git.ipfire.org Git - thirdparty/samba.git/commit
ldb:dn_casefold_internal: TALLOC_FREE only what we talloced
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Wed, 21 Aug 2024 23:03:13 +0000 (11:03 +1200)
committerDouglas Bagnall <dbagnall@samba.org>
Thu, 19 Dec 2024 23:00:32 +0000 (23:00 +0000)
commitdf3f7be32627acabc2a937a5b579740eaa63bd2a
tree71dd07800ee16d6b94fc30cff4844fa751d65c2b
parent9754980b03fcb740a4bfa7b098b991e53cd67157
ldb:dn_casefold_internal: TALLOC_FREE only what we talloced

If the failure is not on the last component, we would have
TALLOC_FREE()ed some components that we hadn't set.

I think in all pathways we initialise the unset components to zero,
but we should be careful just in case.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
lib/ldb/common/ldb_dn.c