diff options
author | Robert James Kaes <rjkaes@users.sourceforge.net> | 2003-02-26 22:37:38 +0000 |
---|---|---|
committer | Robert James Kaes <rjkaes@users.sourceforge.net> | 2003-02-26 22:37:38 +0000 |
commit | 20d3008c38c5d25be043ea364378ad0ed10680fb (patch) | |
tree | 8f18d1bdc3c61ec6e9ed0e61fe9e77d2207178d4 | |
parent | 1155be1c152c4fc5337b2bc9def123264d7d3936 (diff) | |
download | tinyproxy-20d3008c38c5d25be043ea364378ad0ed10680fb.tar.gz tinyproxy-20d3008c38c5d25be043ea364378ad0ed10680fb.zip |
(main): Removed duplicate code calling the filter_destroy() function.
Once is enough. [Detected by John M Wright]
-rw-r--r-- | src/tinyproxy.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/tinyproxy.c b/src/tinyproxy.c index c4084a5..6239452 100644 --- a/src/tinyproxy.c +++ b/src/tinyproxy.c @@ -1,4 +1,4 @@ -/* $Id: tinyproxy.c,v 1.43 2003-01-27 18:44:43 rjkaes Exp $ +/* $Id: tinyproxy.c,v 1.44 2003-02-26 22:37:38 rjkaes Exp $ * * The initialize routine. Basically sets up all the initial stuff (logfile, * listening socket, config options, etc.) and then sits there and loops @@ -380,11 +380,6 @@ main(int argc, char **argv) child_main_loop(); -#ifdef FILTER_ENABLE - if (config.filter) - filter_destroy(); -#endif - log_message(LOG_INFO, "Shutting down."); child_kill_children(); @@ -398,6 +393,7 @@ main(int argc, char **argv) "Could not remove PID file \"%s\": %s.", config.pidpath, strerror(errno)); } + #ifdef FILTER_ENABLE if (config.filter) filter_destroy(); |