From e6f0851b184123ebf04df45e2f29a59f0cb827eb Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org" Date: Wed, 13 Jun 2007 19:46:11 +0000 Subject: - local requests return EXIT_FAILURE if it can't connect to the daemon - several cleanups --- src/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 1c75970..a039793 100644 --- a/src/main.c +++ b/src/main.c @@ -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); } -- cgit v1.2.3