mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
Explicitly require event context to be specified.
(This used to be commit a95a71fe45
)
This commit is contained in:
parent
06d06c6c94
commit
c15ffa27cb
@ -93,6 +93,10 @@ struct notify_context *notify_init(TALLOC_CTX *mem_ctx, struct server_id server,
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ev == NULL) {
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
notify = talloc(mem_ctx, struct notify_context);
|
notify = talloc(mem_ctx, struct notify_context);
|
||||||
if (notify == NULL) {
|
if (notify == NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -52,7 +52,7 @@ _PUBLIC_ struct sys_notify_context *sys_notify_context_create(struct share_confi
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ev == NULL) {
|
if (ev == NULL) {
|
||||||
ev = event_context_find(mem_ctx);
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx = talloc_zero(mem_ctx, struct sys_notify_context);
|
ctx = talloc_zero(mem_ctx, struct sys_notify_context);
|
||||||
|
Loading…
Reference in New Issue
Block a user