summaryrefslogtreecommitdiffstats
path: root/loader2/urlinstall.c
diff options
context:
space:
mode:
Diffstat (limited to 'loader2/urlinstall.c')
-rw-r--r--loader2/urlinstall.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/loader2/urlinstall.c b/loader2/urlinstall.c
index 2ce84ce7c..ed4ac80c4 100644
--- a/loader2/urlinstall.c
+++ b/loader2/urlinstall.c
@@ -211,7 +211,8 @@ char * mountUrlImage(struct installMethod * method,
setupNetworkDeviceConfig(&netDev, loaderData, flags);
rc = readNetConfig(devName, &netDev, flags);
- if (rc) {
+ if ((rc == LOADER_BACK) || (rc == LOADER_ERROR) ||
+ ((dir == -1) && (rc == LOADER_NOOP))) {
stage = URL_STAGE_IFACE;
dir = -1;
break;
@@ -220,7 +221,7 @@ char * mountUrlImage(struct installMethod * method,
dir = 1;
case URL_STAGE_MAIN:
- if (loaderData->method &&
+ if (loaderData->method && *loaderData->method &&
(!strncmp(loaderData->method, "ftp", 3) ||
!strncmp(loaderData->method, "http", 3)) &&
loaderData->methodData) {