From db8ee51cf26372eee5eed9bf177762fe090f720f Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 23 Jan 2007 20:38:14 +0000 Subject: r20982: Fix a segfault -- I wonder why my make test did not show this earlier... (This used to be commit 4984b0627c84cc192868238c0936ca1a38628cd8) --- source3/smbd/notify.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/smbd') 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); } -- cgit