git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e84d5bb
)
When tallocing a memory block for the state in a tevent_req struct,
author
Jeremy Allison
<jra@samba.org>
Tue, 14 Jul 2009 23:42:21 +0000
(16:42 -0700)
committer
Jeremy Allison
<jra@samba.org>
Tue, 14 Jul 2009 23:42:21 +0000
(16:42 -0700)
ensure it's zeroed out. Vl & Metze please check.
Jeremy.
lib/tevent/tevent_req.c
patch
|
blob
|
history
diff --git
a/lib/tevent/tevent_req.c
b/lib/tevent/tevent_req.c
index 541f93f99c3e36fe77d4f18823484edfc503656b..1ddf9ef15577c2ac6f0fb040c1bdf40a3c56489f 100644
(file)
--- a/
lib/tevent/tevent_req.c
+++ b/
lib/tevent/tevent_req.c
@@
-109,6
+109,7
@@
struct tevent_req *_tevent_req_create(TALLOC_CTX *mem_ctx,
talloc_free(req);
return NULL;
}
+ memset(data, '\0', data_size);
talloc_set_name_const(data, type);
req->data = data;