summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-07-14 16:42:21 -0700
committerJeremy Allison <jra@samba.org>2009-07-14 16:42:21 -0700
commit7be1d727a31b34debbcf8faa1e0bea911112d145 (patch)
tree79268cc33cada96db83a454dfdcf3f62f0dc84c6 /lib
parente84d5bb02d113ae54172755ea284e7f22b677a7b (diff)
downloadsamba-7be1d727a31b34debbcf8faa1e0bea911112d145.tar.gz
samba-7be1d727a31b34debbcf8faa1e0bea911112d145.tar.bz2
samba-7be1d727a31b34debbcf8faa1e0bea911112d145.zip
When tallocing a memory block for the state in a tevent_req struct,
ensure it's zeroed out. Vl & Metze please check. Jeremy.
Diffstat (limited to 'lib')
-rw-r--r--lib/tevent/tevent_req.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/tevent/tevent_req.c b/lib/tevent/tevent_req.c
index 541f93f99c..1ddf9ef155 100644
--- 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;