mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 00:37:00 +08:00
removed unneeded warning
This commit is contained in:
@@ -52,7 +52,6 @@ int ret;
|
||||
if (s->config->disconnect_script == NULL)
|
||||
return;
|
||||
|
||||
/* XXX: close fds */
|
||||
pid = fork();
|
||||
if (pid == 0) {
|
||||
char real[64];
|
||||
@@ -88,7 +87,7 @@ int ret;
|
||||
|
||||
exit(0);
|
||||
} else if (pid == -1) {
|
||||
syslog(LOG_ERR, "Could not fork()");
|
||||
mslog(s, proc, LOG_ERR, "Could not fork()");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -101,16 +100,6 @@ int ret, status;
|
||||
if (s->config->connect_script == NULL)
|
||||
return 0;
|
||||
|
||||
if (s->config->auth_types & AUTH_TYPE_PAM) {
|
||||
static int warned = 0;
|
||||
|
||||
if (warned == 0) {
|
||||
syslog(LOG_WARNING, "PAM authentication and UTMP are mutually exclusive. Turn off UTMP and use PAM for accounting.");
|
||||
warned = 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
pid = fork();
|
||||
if (pid == 0) {
|
||||
char real[64];
|
||||
@@ -146,7 +135,7 @@ int ret, status;
|
||||
|
||||
exit(0);
|
||||
} else if (pid == -1) {
|
||||
syslog(LOG_ERR, "Could not fork()");
|
||||
mslog(s, proc, LOG_ERR, "Could not fork()");
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user