From: Steven Barth Date: Wed, 16 Oct 2013 09:58:12 +0000 (+0200) Subject: key to data elements point at wrong memory area X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=ddbd2cc51b3db14f6a8bd46ceebaee9097a50b78;p=project%2Fnetifd.git key to data elements point at wrong memory area --- 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)