summaryrefslogtreecommitdiffhomepage
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 1309284..ad1c271 100644
--- a/src/main.c
+++ b/src/main.c
@@ -356,6 +356,9 @@ main (int argc, char **argv)
setup_sig(SIGPIPE, SIG_IGN, "SIGPIPE", argv[0]);
+ if (init_sock())
+ exit (EX_SOFTWARE);
+
#ifdef FILTER_ENABLE
if (config->filter)
filter_init ();
@@ -425,6 +428,8 @@ main (int argc, char **argv)
filter_destroy ();
#endif /* FILTER_ENABLE */
+ cleanup_sock();
+
free_config (config);
shutdown_logging ();