Require explicit event context rather than looking if it is not specified.
authorJelmer Vernooij <jelmer@samba.org>
Wed, 16 Apr 2008 23:22:39 +0000 (01:22 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Wed, 16 Apr 2008 23:22:39 +0000 (01:22 +0200)
(This used to be commit 1da0063bd5fd18ad3ac7a07c985ec6be380486e2)

source4/ntvfs/sysdep/sys_lease.c

index b8a165aa519b087cc63a664aa8bc9f1004ad868b..e6b11c450aba4d583744bc2f06a9715c07979091 100644 (file)
@@ -55,7 +55,7 @@ _PUBLIC_ struct sys_lease_context *sys_lease_context_create(struct share_config
        }
 
        if (ev == NULL) {
-               ev = event_context_find(mem_ctx);
+               return NULL;
        }
 
        ctx = talloc_zero(mem_ctx, struct sys_lease_context);