clear any lists prior to running sec mod

This commit is contained in:
Nikos Mavrogiannopoulos
2013-03-24 09:36:42 +01:00
parent 2a8bd08288
commit 123eae6510
2 changed files with 2 additions and 2 deletions

View File

@@ -396,6 +396,7 @@ const char *p;
pid = fork();
if (pid == 0) { /* child */
clear_lists(s);
prctl(PR_SET_PDEATHSIG, SIGTERM);
setproctitle(PACKAGE_NAME"-secmod");

View File

@@ -684,6 +684,7 @@ int main(int argc, char** argv)
flags |= LOG_PERROR;
#endif
openlog("ocserv", flags, LOG_DAEMON);
syslog_open = 1;
#ifdef HAVE_LIBWRAP
allow_severity = LOG_DAEMON|LOG_INFO;
deny_severity = LOG_DAEMON|LOG_WARNING;
@@ -707,8 +708,6 @@ int main(int argc, char** argv)
alarm(MAINTAINANCE_TIME(&s));
syslog_open = 1;
for (;;) {
check_other_work(&s);