Fix bug #5814 - Winbindd dumping core in a strange manner while doing "rescan_trusted...
commitc62e2d9e7a5c2c4dc04c2b1d78af90c6d557a40f
authorJeremy Allison <jra@samba.org>
Wed, 8 Oct 2008 18:40:03 +0000 (8 11:40 -0700)
committerKarolin Seeger <kseeger@samba.org>
Wed, 15 Oct 2008 16:05:38 +0000 (15 18:05 +0200)
tree68c61ff9e34fc2916becc60677ecb8bffafc3e08
parent846de0001337d5ca0dbb4263841bfebe46fef6b6
Fix bug #5814 - Winbindd dumping core in a strange manner while doing "rescan_trusted_domain".
From analysis by hargagan <shargagan@novell.com> :
"The winbindd_child_died() is also getting called from process_loop() in case of
SIGCHLD signal. In this case it doesn't make the timeout_handler to NULL for
the first request. It then initiate a new request using
schedule_async_request() which installs a new timeout handler for the same
request. In such a case, for a badly unresponsive system both the timeout
handler can be called. For the first call the "private_data" will be cleared
and for another call the timeout handler will be detecting the double free. So,
for such a case as well, the winbindd_child_died() should make the
timeout_handler to NULL."
Jeremy.
(cherry picked from commit 6be98cbb23f4cdb65353a426ae5edbf0290774d8)
source/winbindd/winbindd_dual.c