]> git.sur5r.net Git - ngadmin/commitdiff
Cli: fix infinite loop in automatic login in case of network errors
authordarkcoven <admin@darkcoven.tk>
Sun, 6 Oct 2013 10:57:18 +0000 (12:57 +0200)
committerdarkcoven <admin@darkcoven.tk>
Sun, 6 Oct 2013 10:57:18 +0000 (12:57 +0200)
cli/admin.c

index b40bbd99d5b45e2ea6d9765171159ecfb2b81fae..f5b691b305fd555e9ec0054fc3f08c401e0918fc 100644 (file)
@@ -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 */