]> git.ipfire.org Git - thirdparty/openvpn.git/commit
push: fix compilation with --disable-management and --enable-werror
authorAntonio Quartulli <a@unstable.cc>
Wed, 3 Aug 2022 15:40:49 +0000 (17:40 +0200)
committerGert Doering <gert@greenie.muc.de>
Wed, 3 Aug 2022 19:44:34 +0000 (21:44 +0200)
commitbb44e87f6a51318547a94a47ebc8f1523a29bb03
tree57bfd3d1aee869cb91508ab1b67fffa760c90e3b
parent6b9f4d71d859c27a9a71699aa899c9a2c5c3b680
push: fix compilation with --disable-management and --enable-werror

The authfail_extended and buf variables are only used when
ENABLE_MANAGEMENT is defined. However, they are currently declared
outside of any ifdefs, thus triggering a warning.

Move the declaration of these 2 down, right before their usage (within
the existing "#ifdef ENABLE_MANAGEMENT" block.

Fixes: ("Cleanup receive_auth_failed and simplify method")
Cc: Arne Schwabe <arne@rfc2549.org>
Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20220803154049.1213-1-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg24792.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/push.c