nterface-ip: remove superfluous iface check in interface_ip_set_enabled()
[project/netifd.git] / proto.c
diff --git a/proto.c b/proto.c
index 9eb31c5..6047735 100644 (file)
--- a/proto.c
+++ b/proto.c
@@ -591,7 +591,7 @@ proto_dump_handlers(struct blob_buf *b)
                void *v;
 
                c = blobmsg_open_table(b, p->name);
-               if (p->config_params->validate) {
+               if (p->config_params && p->config_params->validate) {
                        int i;
 
                        v = blobmsg_open_table(b, "validate");