From 26cb3b2a0aebb1b9dc07daf7b54bd8400d6d659b Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 4 Oct 2014 20:30:24 +0200 Subject: [PATCH] wireless: fix blob buf in put_container() Signed-off-by: Felix Fietkau --- wireless.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.11.0