projects
/
oweals
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81a3b50
)
key to data elements point at wrong memory area
author
Steven Barth
<steven@midlink.org>
Wed, 16 Oct 2013 09:58:12 +0000
(11:58 +0200)
committer
Steven Barth
<steven@midlink.org>
Thu, 17 Oct 2013 14:52:16 +0000
(16:52 +0200)
interface.c
patch
|
blob
|
history
diff --git
a/interface.c
b/interface.c
index a79de4a999977a64ce9de47bf4625ca985b24c57..06206170e990cff8cada328d359d9873a73445ff 100644
(file)
--- 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)