summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--loader/nfsinstall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loader/nfsinstall.c b/loader/nfsinstall.c
index 8c5277970..a8bba1c4c 100644
--- a/loader/nfsinstall.c
+++ b/loader/nfsinstall.c
@@ -89,7 +89,7 @@ static int nfsGetSetup(char ** hostptr, char ** dirptr) {
do {
rc = newtWinEntries(_("NFS Setup"), buf, 60, 5, 15,
24, entries, _("OK"), _("Back"), NULL);
- } while (!strcmp(newServer, "") || !strcmp(newDir, ""));
+ } while ((!strcmp(newServer, "") || !strcmp(newDir, "")) && rc != 2);
free(buf);
free(entries[1].text);