r20602: Fix coverity ID 339. SMB_ASSERT does not panic without -DDEVELOPER.
authorVolker Lendecke <vlendec@samba.org>
Mon, 8 Jan 2007 08:00:53 +0000 (08:00 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:16:57 +0000 (12:16 -0500)
Volker

source/smbd/notify.c

index bcd8fcb0ab1f6ec14e9b191b4c0df9eb6ae4ce97..6bedb17261f8b7b60d1a48b076406417548cd18a 100644 (file)
@@ -219,7 +219,10 @@ static void change_notify_remove_request(struct notify_change_request *remove_re
                        break;
                }
        }
                        break;
                }
        }
-       SMB_ASSERT(req != NULL);
+
+       if (req == NULL) {
+               smb_panic("notify_req not found in fsp's requests\n");
+       }
 
        DLIST_REMOVE(fsp->notify->requests, req);
        DLIST_REMOVE(notify_changes_by_mid, req->mid_map);
 
        DLIST_REMOVE(fsp->notify->requests, req);
        DLIST_REMOVE(notify_changes_by_mid, req->mid_map);