X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=interface.c;h=60efc7e43950fc8f28bc97289cee59ea1a5089ca;hp=a5675f7a77a35cc90d441fd755a0b028294219ab;hb=6d99c7d319393a0a1bf1cc091ab60568f8f70a99;hpb=735244cf3ca5bf37f185e8cf52862c1be96b5c21 diff --git a/interface.c b/interface.c index a5675f7..60efc7e 100644 --- a/interface.c +++ b/interface.c @@ -241,7 +241,8 @@ interface_alloc(const char *name, struct blob_attr *attr) proto_attach_interface(iface, proto_name); - if (!(iface->proto_handler->flags & PROTO_FLAG_NODEV) && + if (iface->proto_handler && + !(iface->proto_handler->flags & PROTO_FLAG_NODEV) && (cur = tb[IFACE_ATTR_IFNAME])) { dev = device_get(blobmsg_data(cur), true); if (dev)