1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r20982: Fix a segfault -- I wonder why my make test did not show this earlier...

This commit is contained in:
Volker Lendecke 2007-01-23 20:38:14 +00:00 committed by Gerald (Jerry) Carter
parent 4610465d7f
commit 4984b0627c

View File

@ -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);
}