diff options
author | Vinicius Costa Gomes <vinicius.gomes@openbossa.org> | 2012-02-10 18:40:02 -0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-02-14 14:32:34 +0200 |
commit | 36ca1992d4b95a8fe0490eedc91f2bac5e117e0c (patch) | |
tree | 537a5e79934820c00e76e9a0b30918b85fb8dbde /plugins | |
parent | 8eb00c20f03b7a84930a32185b763f09a0c79ca3 (diff) |
mgmtops: Fix doing a useless memset()
The buffers were already allocated using g_try_malloc0().
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mgmtops.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/plugins/mgmtops.c b/plugins/mgmtops.c index 7e473868..d354bc69 100644 --- a/plugins/mgmtops.c +++ b/plugins/mgmtops.c @@ -1958,8 +1958,6 @@ static int mgmt_load_link_keys(int index, GSList *keys, gboolean debug_keys) if (buf == NULL) return -ENOMEM; - memset(buf, 0, sizeof(buf)); - hdr = (void *) buf; hdr->opcode = htobs(MGMT_OP_LOAD_LINK_KEYS); hdr->len = htobs(cp_size); @@ -2169,8 +2167,6 @@ static int mgmtops_load_ltks(int index, GSList *keys) if (buf == NULL) return -ENOMEM; - memset(buf, 0, sizeof(buf)); - hdr = (void *) buf; hdr->opcode = htobs(MGMT_OP_LOAD_LONG_TERM_KEYS); hdr->len = htobs(cp_size); |