X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=ubus.c;h=aeb864fdabd24610c2f5a8c18351147c1fc1b69d;hp=5cb54b1c4271fea569e3dcaf4dfb9a6141ef19a4;hb=ede9739fe90f5da09f14481d10a4f11c000072de;hpb=f06565ce63414c9a1ce558a5ea35f2b6a4ed1605 diff --git a/ubus.c b/ubus.c index 5cb54b1..aeb864f 100644 --- a/ubus.c +++ b/ubus.c @@ -650,7 +650,8 @@ netifd_dump_status(struct interface *iface) if (iface->state == IFS_UP) { time_t cur = system_get_rtime(); blobmsg_add_u32(&b, "uptime", cur - iface->start_time); - blobmsg_add_string(&b, "l3_device", iface->l3_dev.dev->ifname); + if (iface->l3_dev.dev) + blobmsg_add_string(&b, "l3_device", iface->l3_dev.dev->ifname); } if (iface->proto_handler)