smbd: Fix crash bug in notify_deferred_opens
authorVolker Lendecke <vl@samba.org>
Mon, 30 Sep 2013 12:52:49 +0000 (12:52 +0000)
committerKarolin Seeger <kseeger@samba.org>
Tue, 1 Oct 2013 07:37:09 +0000 (09:37 +0200)
commit8303c26ae93e487d823ab80251b1e9f6ff85d9ea
tree728726718461ed5eb303d2ed5f644a53d1401908
parent76952d4ac5fdc96109e50e2aa10e7a0f1326de1e
smbd: Fix crash bug in notify_deferred_opens

The "deferred" array only holds enough entries for non-stale pids. We
should skip those as well when filling that array.

This bug came in with 19b6671. No issue in master and 4.1, we don't have
deferred entries anymore there.

Part of a fix for bug #10138 - smbd doesn't always clean up share modes after
hard crash.
source3/smbd/close.c