]> git.ipfire.org Git - thirdparty/openvpn.git/commit
multi: don't call DCO APIs if DCO is disabled
authorAntonio Quartulli <a@unstable.cc>
Tue, 21 Mar 2023 10:28:42 +0000 (11:28 +0100)
committerGert Doering <gert@greenie.muc.de>
Tue, 21 Mar 2023 15:07:58 +0000 (16:07 +0100)
commit891c71db5e26291b19885b9a5ae5c72011b86658
treef033c6a04ab8c6c6a8f7113f9aca8ace98eb4ccb
parentdaf66f4013d8facc085ea6cfaaf8a42f4d45a461
multi: don't call DCO APIs if DCO is disabled

The agreement with the DCO submodule is that no API should be called if
DCO is actually disabled. For this reason, every invocation must happen
only after having checked that dco_enabled() returns true.

Add missing checks before invoking dco_get_peer_stats_multi()

Reported-by: Lev Stipakov <lev@openvpn.net>
Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Lev Stipakov <lstipakov@gmail.com>
Message-Id: <20230321102842.10780-1-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg26458.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/multi.c