dect
/
libdect
Archived
13
0
Fork 0

libdect: also clear dect handle private area

Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:
Patrick McHardy 2010-11-16 15:05:34 +01:00
parent 4e04c104d1
commit 7ce0366c31
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ static struct dect_handle *dect_alloc_handle(struct dect_ops *ops)
dh = ops->malloc(sizeof(*dh) + ops->priv_size);
if (dh == NULL)
return NULL;
memset(dh, 0, sizeof(*dh));
memset(dh, 0, sizeof(*dh) + ops->priv_size);
dh->ops = ops;
init_list_head(&dh->links);