]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix parameter listing in non-debug builds at verb 4
authorJosh Cepek <josh.cepek@usa.net>
Thu, 21 Feb 2013 15:50:38 +0000 (09:50 -0600)
committerGert Doering <gert@greenie.muc.de>
Thu, 14 Mar 2013 15:39:10 +0000 (16:39 +0100)
commitc4358645fb37b7c4d9c82c0b7b8b4f17ec4cf326
tree4d292fbd393c99f630ea86fef50c737b7cd7ea21
parent0fb2391660a369853f20fd4807eaa5ed3461e755
Fix parameter listing in non-debug builds at verb 4

When built with enable_debug=no, the parameter output expected at --verb
4 is not printed due to use of #ifdef ENABLE_DEBUG in the responsible
code sections. This appears to be a mistake when looking at the
configure help text for enable_small and enable_debug.

This change keys the relevant code off of enable_small instead,
including the parameter listing when enale_small=no (the
configure-script default.) Most of this code is in options.c, with some
callers present in plugin.c/h and route.c/h. No function code is
changed, just the #ifdef values to use the small feature instead of
debug.

This means builds no longer need enable_debug=yes in order to get the
expected log output at verb 4.

Signed-off-by: Josh Cepek <josh.cepek@usa.net>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <437RBuq1U8032S07.1361465626@web07.cms.usa.net>
URL: http://article.gmane.org/gmane.network.openvpn.devel/7361
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit 6c61d0dd339084175f6911d8b713faaf4967ca03)
src/openvpn/options.c
src/openvpn/plugin.c
src/openvpn/plugin.h
src/openvpn/route.c
src/openvpn/route.h