]> git.sur5r.net Git - ngadmin/blobdiff - cli/admin.c
Cli: fix infinite loop in automatic login in case of network errors
[ngadmin] / 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 */