smbd: Fix bug 10593
commit713518a4c85172973611cf99b77ba4fe631fb850
authorVolker Lendecke <vl@samba.org>
Fri, 20 Jun 2014 14:15:54 +0000 (20 14:15 +0000)
committerVolker Lendecke <vl@samba.org>
Sat, 21 Jun 2014 18:38:11 +0000 (21 20:38 +0200)
tree131d719a29bb631cfc2c1e45cde24ac954b76390
parent0c2e763aaa05f63bb8563e62f9731e35afa9ed86
smbd: Fix bug 10593

Bug 10593 is a panic that happens if we get an oplock break reply via
dbwrap_watch for which we can't find the SMB request anymore. This
error condition can legally happen when a client cancels the create
request before the oplock break response comes in. This patch drops the
dbwrap_watch_send request waiting for the oplock break when the request
is cancelled. Yet another talloc hierarchy problem, but if done right,
talloc hierarchies can make rundown of state easy :-)

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/open.c