X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fdevice-handler.c;h=120f11f52aa819639ece6a1bffaa49d0772921ae;hp=191ec33e52a153f8323f95f10c7278756fa1bf9d;hb=01dac4f074301097d10abb6130eb68f99f56a1b9;hpb=e1f6ffb9ca9e35738385a3524ba46896a0b519e6 diff --git a/discover/device-handler.c b/discover/device-handler.c index 191ec33..120f11f 100644 --- a/discover/device-handler.c +++ b/discover/device-handler.c @@ -5,6 +5,7 @@ #include #include #include +#include #include #include #include @@ -922,6 +923,12 @@ void device_handler_process_url(struct device_handler *handler, status->detail = talloc_asprintf(status, _("Received config URL %s"), url); + if (!handler->network) { + status->message = talloc_asprintf(handler, + _("No network configured")); + goto msg; + } + event = talloc(handler, struct event); event->type = EVENT_TYPE_USER; event->action = EVENT_ACTION_CONF;