summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-08-24 21:14:52 -0700
committerJeremy Allison <jra@samba.org>2009-08-24 21:14:52 -0700
commit213546103749c30dbb3ad8472872b9a8fad34205 (patch)
tree8aa18044699f6735c5ef04f09252e72260aac8c6 /source3/smbd
parentc69f92d16d57c2387d31b5dfd01aab0685a671d0 (diff)
downloadsamba-213546103749c30dbb3ad8472872b9a8fad34205.tar.gz
samba-213546103749c30dbb3ad8472872b9a8fad34205.tar.bz2
samba-213546103749c30dbb3ad8472872b9a8fad34205.zip
Help debug for bug 6651 - smbd SIGSEGV when breaking oplocks.
Should help track if we get invoked with an invalid fd from the signal handler. Jeremy.
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/oplock_linux.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/oplock_linux.c b/source3/smbd/oplock_linux.c
index b4a5495e4b..535e809616 100644
--- a/source3/smbd/oplock_linux.c
+++ b/source3/smbd/oplock_linux.c
@@ -98,6 +98,10 @@ static void linux_oplock_signal_handler(struct tevent_context *ev_ctx,
files_struct *fsp;
fsp = file_find_fd(fd);
+ if (fsp == NULL) {
+ DEBUG(0,("linux_oplock_signal_handler: failed to find fsp for file fd=%d\n", fd ));
+ smb_panic("linux_oplock_signal_handler\n");
+ }
break_kernel_oplock(smbd_messaging_context(), fsp);
}