]> git.ipfire.org Git - thirdparty/samba.git/commit
dsdb: fix bug 15872, use-after-free
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Sun, 22 Jun 2025 03:05:39 +0000 (15:05 +1200)
committerDouglas Bagnall <dbagnall@samba.org>
Wed, 30 Jul 2025 02:03:40 +0000 (02:03 +0000)
commit750f6847f04d5c18ee308ac8bc5bc0828c32deeb
tree8f4b3e43159d5ce1bee4ef074958e2a933e73c8f
parentf91df3191bca58215bb3d2d76b21e49be39fab3c
dsdb: fix bug 15872, use-after-free

We were finding the old element, reallocing, then copying,
which is the wrong order.

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

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Jennifer Sutton <jennifersutton@catalyst.net.nz>
Autobuild-User(master): Douglas Bagnall <dbagnall@samba.org>
Autobuild-Date(master): Wed Jul 30 02:03:40 UTC 2025 on atb-devel-224
source4/dsdb/kcc/scavenge_dns_records.c