From 88ee3bcffb3732017acf0581a224f2099ecaad7e Mon Sep 17 00:00:00 2001 From: Selva Nair Date: Wed, 13 Feb 2019 14:41:50 -0500 Subject: [PATCH] fixup for script-security error message (to be squashed with previous commit c7462ab) Signed-off-by: Selva Nair --- openvpn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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));