]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
lldpcli: fix exit command
authorVincent Bernat <bernat@luffy.cx>
Tue, 22 Jan 2013 22:02:48 +0000 (23:02 +0100)
committerVincent Bernat <bernat@luffy.cx>
Tue, 22 Jan 2013 22:02:48 +0000 (23:02 +0100)
The exit command did not exit lldpcli anymore.

src/client/lldpcli.c

index 95f66dab95444bdba126f768233f711e016c70f7..cba35e4e632767ee823c66d87d3511ea9c510764 100644 (file)
@@ -535,7 +535,7 @@ main(int argc, char *argv[])
                        if (n != 0) add_history(line);
 #endif
                }
-       } while (line != NULL);
+       } while (!must_exit && line != NULL);
        rc = EXIT_SUCCESS;
 
 end: