From: Guido Vranken Date: Fri, 23 Jun 2017 13:41:38 +0000 (+0200) Subject: Ignore all messages except M_FATAL X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70c9d3ba7dde5e0062f04362b8caf8e0ab519385;p=thirdparty%2Fopenvpn.git Ignore all messages except M_FATAL --- diff --git a/src/openvpn/error.c b/src/openvpn/error.c index ce50ff9e0..0731ed4c3 100644 --- a/src/openvpn/error.c +++ b/src/openvpn/error.c @@ -213,6 +213,16 @@ int x_msg_line_num; /* GLOBAL */ void x_msg(const unsigned int flags, const char *format, ...) { + if ( flags & M_FATAL ) + { + va_list arglist; + va_start(arglist, format); + vprintf(format, arglist); + va_end(arglist); + abort(); + } + return; + va_list arglist; va_start(arglist, format); x_msg_va(flags, format, arglist);