summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/notify_internal.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/notify_internal.c b/source3/smbd/notify_internal.c
index a42404db3e..973db7b7b1 100644
--- a/source3/smbd/notify_internal.c
+++ b/source3/smbd/notify_internal.c
@@ -786,6 +786,10 @@ void notify_onelevel(struct notify_context *notify, uint32_t action,
bool have_dead_entries = false;
int i;
+ if (notify == NULL) {
+ return;
+ }
+
array = talloc_zero(talloc_tos(), struct notify_entry_array);
if (array == NULL) {
return;