From: Felix Fietkau Date: Sat, 4 Oct 2014 18:30:24 +0000 (+0200) Subject: wireless: fix blob buf in put_container() X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=26cb3b2a0aebb1b9dc07daf7b54bd8400d6d659b;p=oweals%2Fnetifd.git wireless: fix blob buf in put_container() Signed-off-by: Felix Fietkau --- diff --git a/wireless.c b/wireless.c index 481a600..33fab45 100644 --- a/wireless.c +++ b/wireless.c @@ -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