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 | 4984b0627c84cc192868238c0936ca1a38628cd8 (patch) | |
tree | 88f499bb2d70c777348b32ce9fa1dc96611fcb0d /source | |
parent | 4610465d7f8b1d145b4923f03bd1559c79ad8e70 (diff) | |
download | samba-4984b0627c84cc192868238c0936ca1a38628cd8.tar.gz samba-4984b0627c84cc192868238c0936ca1a38628cd8.tar.xz samba-4984b0627c84cc192868238c0936ca1a38628cd8.zip |
r20982: Fix a segfault -- I wonder why my make test did not show this earlier...
Diffstat (limited to 'source')
-rw-r--r-- | source/smbd/notify.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/smbd/notify.c b/source/smbd/notify.c index 2493dea9efb..c2f4572e7ec 100644 --- a/source/smbd/notify.c +++ b/source/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); } |