diff options
author | Steven Barth <steven@midlink.org> | 2013-10-16 11:58:12 +0200 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2013-10-17 16:52:16 +0200 |
commit | ddbd2cc51b3db14f6a8bd46ceebaee9097a50b78 (patch) | |
tree | c4bb13e1280473e32bf8c57a927f32402ded6e67 /interface.c | |
parent | 81a3b50ef7fad3096a8d164c871521e6e6b55aa1 (diff) |
key to data elements point at wrong memory area
Diffstat (limited to 'interface.c')
-rw-r--r-- | interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/interface.c b/interface.c index a79de4a..0620617 100644 --- a/interface.c +++ b/interface.c @@ -151,7 +151,7 @@ interface_add_data(struct interface *iface, const struct blob_attr *data) n = calloc(1, sizeof(*n) + blob_pad_len(data)); memcpy(n->data, data, blob_pad_len(data)); - n->node.key = blobmsg_name(data); + n->node.key = blobmsg_name(n->data); o = avl_find_element(&iface->data, n->node.key, o, node); if (o) |