summaryrefslogtreecommitdiff
path: root/source4/ntvfs/common
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-04-17 01:19:53 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-04-17 01:19:53 +0200
commitc15ffa27cb3a1cadbbf06d564146c1ab8dec952b (patch)
treeba3a8091272fa19202e6c543c01d9c4dd29c343b /source4/ntvfs/common
parent06d06c6c9415140167708d09307125067c1f5b87 (diff)
downloadsamba-c15ffa27cb3a1cadbbf06d564146c1ab8dec952b.tar.gz
samba-c15ffa27cb3a1cadbbf06d564146c1ab8dec952b.tar.bz2
samba-c15ffa27cb3a1cadbbf06d564146c1ab8dec952b.zip
Explicitly require event context to be specified.
(This used to be commit a95a71fe45ef6a578569931a7c38061783d07db3)
Diffstat (limited to 'source4/ntvfs/common')
-rw-r--r--source4/ntvfs/common/notify.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/ntvfs/common/notify.c b/source4/ntvfs/common/notify.c
index 23aa3fb668..9055d6ece3 100644
--- a/source4/ntvfs/common/notify.c
+++ b/source4/ntvfs/common/notify.c
@@ -93,6 +93,10 @@ struct notify_context *notify_init(TALLOC_CTX *mem_ctx, struct server_id server,
return NULL;
}
+ if (ev == NULL) {
+ return NULL;
+ }
+
notify = talloc(mem_ctx, struct notify_context);
if (notify == NULL) {
return NULL;