From: Vincent Bernat Date: Tue, 22 Jan 2013 22:02:48 +0000 (+0100) Subject: lldpcli: fix exit command X-Git-Tag: 0.7.2~36 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4a22e2c1436452edd179ec6a1acd6f4d6dd97aa5;p=thirdparty%2Flldpd.git lldpcli: fix exit command The exit command did not exit lldpcli anymore. --- diff --git a/src/client/lldpcli.c b/src/client/lldpcli.c index 95f66dab..cba35e4e 100644 --- a/src/client/lldpcli.c +++ b/src/client/lldpcli.c @@ -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: