From 1d0564c3558a115d90fe266e668221135bcb3221 Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Thu, 13 Apr 2017 15:49:04 +0200 Subject: [PATCH] ubus: fix interface name and proto lookup Lookup of iface_name and iface_proto in the json data were switched in fw3_ubus_rules Signed-off-by: Hans Dedecker --- ubus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ubus.c b/ubus.c index e5326f9..f353d01 100644 --- a/ubus.c +++ b/ubus.c @@ -259,9 +259,9 @@ fw3_ubus_rules(struct blob_buf *b) if (!strcmp(blobmsg_name(cur), "l3_device")) l3_device = blobmsg_get_string(cur); else if (!strcmp(blobmsg_name(cur), "interface")) - iface_proto = blobmsg_get_string(cur); - else if (!strcmp(blobmsg_name(cur), "proto")) iface_name = blobmsg_get_string(cur); + else if (!strcmp(blobmsg_name(cur), "proto")) + iface_proto = blobmsg_get_string(cur); else if (!strcmp(blobmsg_name(cur), "data")) data = cur; } -- 2.30.2