From ddbd2cc51b3db14f6a8bd46ceebaee9097a50b78 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Wed, 16 Oct 2013 11:58:12 +0200 Subject: [PATCH] key to data elements point at wrong memory area --- interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.25.1