r20982: Fix a segfault -- I wonder why my make test did not show this earlier...
authorVolker Lendecke <vlendec@samba.org>
Tue, 23 Jan 2007 20:38:14 +0000 (20:38 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:17:22 +0000 (12:17 -0500)
source/smbd/notify.c

index 2493dea9efba7f78ef17440a65904ff81fd7710b..c2f4572e7ecd85ddd38da68d81bb3f9dae77b3ee 100644 (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);
                }