mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
tevent: use talloc_zero_size() for the private state in tevent_context_wrapper_create()
This is watch tevent_req_create() uses and what callers of tevent_context_wrapper_create() would therefore also expect. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
c390728819
commit
9d31bbf979
@ -371,7 +371,7 @@ struct tevent_context *_tevent_context_wrapper_create(struct tevent_context *mai
|
||||
ev->wrapper.glue->wrap_ev = ev;
|
||||
ev->wrapper.glue->main_ev = main_ev;
|
||||
ev->wrapper.glue->ops = ops;
|
||||
ev->wrapper.glue->private_state = talloc_size(ev->wrapper.glue, psize);
|
||||
ev->wrapper.glue->private_state = talloc_zero_size(ev->wrapper.glue, psize);
|
||||
if (ev->wrapper.glue->private_state == NULL) {
|
||||
talloc_free(ev);
|
||||
return NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user