diff --git a/openvpn.c b/openvpn.c index a6be2ca4e..d6ab00f00 100644 --- a/openvpn.c +++ b/openvpn.c @@ -141,7 +141,8 @@ static void SaveLastError(connection_t *c, const char *msg) { /* If we have enforced script security and there is script error, translate/re-word the error */ - if (get_script_security(c) != SSEC_UNDEF + if (!o.disable_ssec_override + && get_script_security(c) != SSEC_UNDEF && strstr(msg, "'--script-security 2' or higher is required to call user-defined scripts")) { _sntprintf_0(c->last_error, LoadLocalizedString(IDS_ERR_SCRIPT_OVERRIDE));