From 3fbe066f6a8c2eddec9ed3555ddc5b41fd427c90 Mon Sep 17 00:00:00 2001 From: darkcoven Date: Sun, 6 Oct 2013 12:57:18 +0200 Subject: [PATCH] Cli: fix infinite loop in automatic login in case of network errors --- cli/admin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/admin.c b/cli/admin.c index b40bbd9..f5b691b 100644 --- a/cli/admin.c +++ b/cli/admin.c @@ -151,7 +151,7 @@ static int pre_login (const struct ether_addr *mac, int retries) err = ngadmin_scan(nga); if (err < 0) { printErrCode(err); - continue; + return err; } /* search switch with requested MAC */ -- 2.39.5