Skip to content

Commit

Permalink
fixup for script-security error message
Browse files Browse the repository at this point in the history
(to be squashed with previous commit c7462ab)

Signed-off-by: Selva Nair <[email protected]>
  • Loading branch information
selvanair committed Feb 13, 2019
1 parent 5177cca commit 88ee3bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openvpn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 88ee3bc

Please sign in to comment.