wireless: fix blob buf in put_container()
authorFelix Fietkau <nbd@openwrt.org>
Sat, 4 Oct 2014 18:30:24 +0000 (20:30 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 4 Oct 2014 18:30:24 +0000 (20:30 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
wireless.c

index 481a600e7d4e33a5cc26465bc5048c6e856e4e56..33fab451184d32cd94eaf148e49fec53cdf9af3f 100644 (file)
@@ -51,9 +51,9 @@ static const struct uci_blob_param_list vif_param = {
 static void
 put_container(struct blob_buf *buf, struct blob_attr *attr, const char *name)
 {
-       void *c = blobmsg_open_table(&b, name);
-       blob_put_raw(&b, blob_data(attr), blob_len(attr));
-       blobmsg_close_table(&b, c);
+       void *c = blobmsg_open_table(buf, name);
+       blob_put_raw(buf, blob_data(attr), blob_len(attr));
+       blobmsg_close_table(buf, c);
 }
 
 static void