mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
5b19288949
iServiceIndex may indicate an empty slot in the ServicePtrs array. In this case, lpcfg_serivce_ok(ServicePtrs[iServiceIndex]) may trigger a NULL deref and crash. Skipping the check here will cause a scan of the array in add_a_service() and the NULL slot will be used safely. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15267 Signed-off-by: Andrew Walker <awalker@ixsystems.com> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Dec 20 18:49:54 UTC 2022 on sn-devel-184 |
||
---|---|---|
.. | ||
loadparm_ctx.c | ||
loadparm.c | ||
loadparm.h | ||
pyparam_util.c | ||
pyparam.c | ||
pyparam.h | ||
service.c | ||
test_lp_load.c | ||
util.c | ||
wscript_build |