Do not let scripts block the server operation.

This commit is contained in:
Nikos Mavrogiannopoulos
2013-03-13 19:18:52 +01:00
parent 0c4b013b3f
commit b552f27ddb
13 changed files with 260 additions and 151 deletions
+7
View File
@@ -266,6 +266,13 @@ static void check_cfg( struct cfg_st *config)
else
config->cert_req = GNUTLS_CERT_REQUEST;
}
if (config->plain_passwd != NULL) {
if (access(config->plain_passwd, R_OK) != 0) {
fprintf(stderr, "cannot access password file %s\n", config->plain_passwd);
exit(1);
}
}
#ifdef ANYCONNECT_CLIENT_COMPAT
if (config->cert) {