diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-01-23 20:38:14 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:17:22 -0500 |
commit | db8ee51cf26372eee5eed9bf177762fe090f720f (patch) | |
tree | 818c146114d3cac37d061d3554bbb66500a19c72 /source3 | |
parent | 7556355b28dce1ba3777c782c43a953f219eedd2 (diff) | |
download | samba-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.c | 3 |
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); } |