X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=discover%2Fdevice-handler.c;h=120f11f52aa819639ece6a1bffaa49d0772921ae;hb=d88c7a99467e50bd9d2b57f0f7346904c45c6a11;hp=2164b223b180f6b67176c5b656b1b9f34e42c299;hpb=0bc40319b0dcf8f97889a51ec9bc996fa741126c;p=petitboot diff --git a/discover/device-handler.c b/discover/device-handler.c index 2164b22..120f11f 100644 --- a/discover/device-handler.c +++ b/discover/device-handler.c @@ -923,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;