summaryrefslogtreecommitdiffhomepage
path: root/ubus.c
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2015-04-14 08:45:26 +0200
committerSteven Barth <steven@midlink.org>2015-04-14 08:45:26 +0200
commit8b468ec5022834d04b6be1cf45b4fe4f092c692e (patch)
tree3f3f137fc8959b54297a8b7b2a87d56990ee73af /ubus.c
parent92d2aea918f650f309f753349457028032d53280 (diff)
Cleanup issues reported by scan-build
Signed-off-by: Steven Barth <steven@midlink.org>
Diffstat (limited to 'ubus.c')
-rw-r--r--ubus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ubus.c b/ubus.c
index 161fbe7..422b652 100644
--- a/ubus.c
+++ b/ubus.c
@@ -687,7 +687,7 @@ netifd_dump_status(struct interface *iface)
blobmsg_add_string(&b, "proto", iface->proto_handler->name);
dev = iface->main_dev.dev;
- if (dev && !dev->hidden &&
+ if (dev && !dev->hidden && iface->proto_handler &&
!(iface->proto_handler->flags & PROTO_FLAG_NODEV))
blobmsg_add_string(&b, "device", dev->ifname);