diff options
author | Hannes Eder <heder@google.com> | 2009-10-07 15:08:35 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-10-07 15:08:35 +0200 |
commit | 0cd2397e80d21d77ddb97794f24bb6945849093d (patch) | |
tree | a627d0a9bf64b06720339f8369cf296aa14522d4 /src | |
parent | bde8891c60cd31590b38459081886bb5d1910f97 (diff) | |
download | conntrack-tools-0cd2397e80d21d77ddb97794f24bb6945849093d.tar.gz conntrack-tools-0cd2397e80d21d77ddb97794f24bb6945849093d.zip |
conntrack: fix output when no arguments are passed
When 'conntrack' is called with no arguments then garbage is printed
after the usage message. This patch fixes this.
Signed-off-by: Hannes Eder <heder@google.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/conntrack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conntrack.c b/src/conntrack.c index 42b5133..0053a28 100644 --- a/src/conntrack.c +++ b/src/conntrack.c @@ -1493,7 +1493,7 @@ int main(int argc, char *argv[]) free_options(); - if (exit_msg[cmd][0]) { + if (command && exit_msg[cmd][0]) { fprintf(stderr, "%s v%s (conntrack-tools): ",PROGNAME,VERSION); fprintf(stderr, exit_msg[cmd], counter); if (counter == 0 && !(command & (CT_LIST | EXP_LIST))) |