diff options
author | Patrick McHardy <kaber@trash.net> | 2010-11-16 15:05:34 +0100 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2010-11-16 15:06:43 +0100 |
commit | 7ce0366c316203f67b0ab8902b9db64751e90bbe (patch) | |
tree | 01036cd6fef7017aa2e0cb95753612f10235574a /src | |
parent | 4e04c104d1b1ec24c48a406d8a77ca8f2c171852 (diff) |
libdect: also clear dect handle private area
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/libdect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libdect.c b/src/libdect.c index 7eda2ae..8b77f38 100644 --- a/src/libdect.c +++ b/src/libdect.c @@ -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); |