summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-01-23 20:38:14 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:17:22 -0500
commitdb8ee51cf26372eee5eed9bf177762fe090f720f (patch)
tree818c146114d3cac37d061d3554bbb66500a19c72 /source3
parent7556355b28dce1ba3777c782c43a953f219eedd2 (diff)
downloadsamba-db8ee51cf26372eee5eed9bf177762fe090f720f.tar.gz
samba-db8ee51cf26372eee5eed9bf177762fe090f720f.tar.bz2
samba-db8ee51cf26372eee5eed9bf177762fe090f720f.zip
r20982: Fix a segfault -- I wonder why my make test did not show this earlier...
(This used to be commit 4984b0627c84cc192868238c0936ca1a38628cd8)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/notify.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/notify.c b/source3/smbd/notify.c
index 2493dea9ef..c2f4572e7e 100644
--- a/source3/smbd/notify.c
+++ b/source3/smbd/notify.c
@@ -512,7 +512,8 @@ static void notify_message_callback(int msgtype, struct process_id pid,
for(fsp = fsp_find_di_first(msg.dev, msg.inode); fsp;
fsp = fsp_find_di_next(fsp)) {
- if ((fsp->notify->requests != NULL)
+ if ((fsp->notify != NULL)
+ && (fsp->notify->requests != NULL)
&& (fsp->notify->requests->filter & msg.filter)) {
notify_fsp(fsp, msg.action, msg.name);
}