From: darkcoven Date: Sun, 6 Oct 2013 10:57:18 +0000 (+0200) Subject: Cli: fix infinite loop in automatic login in case of network errors X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3fbe066f6a8c2eddec9ed3555ddc5b41fd427c90;p=ngadmin Cli: fix infinite loop in automatic login in case of network errors --- 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 */