diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-02-15 16:04:02 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-02-15 16:04:02 +0100 |
commit | 7d355046d80aabb9d4b3e8c0eb4478882b69a497 (patch) | |
tree | 198184517f53da74c5730cbe958ed81b513f4687 | |
parent | 2304918b8e82e57be87882c97dfc32c4848d68af (diff) | |
download | conntrack-tools-7d355046d80aabb9d4b3e8c0eb4478882b69a497.tar.gz conntrack-tools-7d355046d80aabb9d4b3e8c0eb4478882b69a497.zip |
conntrackd: don't initialize logging for client request
This patch removes the logging initialization for client requests
which is of any use for them.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r-- | src/main.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -262,12 +262,6 @@ int main(int argc, char *argv[]) exit(EXIT_FAILURE); } - /* - * Setting up logging - */ - if (init_log() == -1) - exit(EXIT_FAILURE); - if (type == REQUEST) { if (do_local_request(action, &conf.local, local_step) == -1) { fprintf(stderr, "can't connect: is conntrackd " @@ -278,6 +272,12 @@ int main(int argc, char *argv[]) } /* + * Setting up logging + */ + if (init_log() == -1) + exit(EXIT_FAILURE); + + /* * lock file */ ret = open(CONFIG(lockfile), O_CREAT | O_EXCL | O_TRUNC, 0600); |