]> git.ipfire.org Git - thirdparty/samba.git/commit
kdc-heimdal: avoid NULL dereference when task is NULL master
authorDaniil Sarafannikov <sarafannikovda@sgu.ru>
Thu, 11 Jun 2026 13:56:45 +0000 (17:56 +0400)
committerAnoop C S <anoopcs@samba.org>
Fri, 19 Jun 2026 08:22:25 +0000 (08:22 +0000)
commit34ebd366eb185f3674b191808686dbcfbb2ebee9
tree2a01638423be242fa662fe8cd672fa87ef02612d
parent972e13fd7564dda5bb15c2dcee550f065474fb18
kdc-heimdal: avoid NULL dereference when task is NULL

kdc_post_fork() may be called with NULL task pointer leading to a
call of task_server_terminate() with NULL pointer, where it will
be dereferenced.

Add an explicit NULL check and instead of attempting to terminate
a NULL task, log the error and return.

Pair-Programmed-With: Timofei Fedotov <sovtouch@altlinux.org>
Signed-off-by: Daniil Sarafannikov <sarafannikovda@sgu.ru>
Reviewed-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Autobuild-User(master): Anoop C S <anoopcs@samba.org>
Autobuild-Date(master): Fri Jun 19 08:22:25 UTC 2026 on atb-devel-224
source4/kdc/kdc-heimdal.c