libnet4: check return value of DC lookupmaster
commitc5511056708fb1be3c2e1b2ad61af6643f92051c
authorBjörn Baumbach <bb@sernet.de>
Fri, 7 Feb 2025 11:03:18 +0000 (7 12:03 +0100)
committerDouglas Bagnall <dbagnall@samba.org>
Sat, 8 Feb 2025 03:30:27 +0000 (8 03:30 +0000)
treeee53c01c6296cfc7aae198eebdb42b94d31533b2
parent2f93c9322b25c3515c72db0150039fe679c81b10
libnet4: check return value of DC lookup

Avoids possible segmentation fault when the lookup fails.

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

Pair-programmed-with: Volker Lendecke <vl@samba.org>
Signed-off-by: Volker Lendecke <vl@samba.org>
Signed-off-by: Björn Baumbach <bb@sernet.de>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Autobuild-User(master): Douglas Bagnall <dbagnall@samba.org>
Autobuild-Date(master): Sat Feb  8 03:30:27 UTC 2025 on atb-devel-224
source4/libnet/libnet_lookup.c