diff options
author | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org> | 2007-06-13 19:46:11 +0000 |
---|---|---|
committer | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org> | 2007-06-13 19:46:11 +0000 |
commit | e6f0851b184123ebf04df45e2f29a59f0cb827eb (patch) | |
tree | 173f08d0a5e3c059bec480ba3a4fe9880e7267e1 /src/main.c | |
parent | 7e28837a6073600129d2fc06c23c40726ef5976a (diff) | |
download | conntrack-tools-e6f0851b184123ebf04df45e2f29a59f0cb827eb.tar.gz conntrack-tools-e6f0851b184123ebf04df45e2f29a59f0cb827eb.zip |
- local requests return EXIT_FAILURE if it can't connect to the daemon
- several cleanups
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -252,9 +252,11 @@ int main(int argc, char *argv[]) } if (type == REQUEST) { - if (do_local_request(action, &conf.local, local_step) == -1) + if (do_local_request(action, &conf.local, local_step) == -1) { fprintf(stderr, "can't connect: is conntrackd " "running? appropiate permissions?\n"); + exit(EXIT_FAILURE); + } exit(EXIT_SUCCESS); } |