]> git.ipfire.org Git - thirdparty/ulogd2.git/commit
ulogd: close logfile description in the exit path of parent process
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 26 Mar 2013 21:48:58 +0000 (22:48 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 26 Mar 2013 21:54:48 +0000 (22:54 +0100)
commit3179bd4de89de7c2388849f5bc48e8f5aad9e5b9
tree7834cfef322f0e6d716863331903185ac8198f49
parent47b7c60572163a508cf67e90aca6b61e089a5657
ulogd: close logfile description in the exit path of parent process

Joan Touzet reported that file descriptor 3 was not ever closed
in the exit path of the parent process:

open("ulogd.conf", O_RDONLY)            = 3

That corresponds to the the file descriptor that was used to
parse the configuration file was not closed.

This closes: http://bugzilla.netfilter.org/show_bug.cgi?id=793

Reported-by: Joan Touzet <joant@cloudant.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/ulogd.c