summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/notify_internal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/notify_internal.c b/source3/smbd/notify_internal.c
index 27fe21214b..aa02e32a2f 100644
--- a/source3/smbd/notify_internal.c
+++ b/source3/smbd/notify_internal.c
@@ -393,7 +393,7 @@ NTSTATUS notify_remove(struct notify_context *notify, void *private_data)
struct db_record *notify_rec;
NTSTATUS status;
- if (notify == NULL) {
+ if ((notify == NULL) || (notify->msg == NULL)) {
return NT_STATUS_NOT_IMPLEMENTED;
}