mirror of
https://github.com/OpenVPN/openvpn.git
synced 2026-02-24 02:10:32 -05:00
options: fix option check for "plugin"
The "plugin" option has one required argument, and an optional one.
This fixes a regression in 3d6a4cd
(https://community.openvpn.net/openvpn/ticket/557).
Signed-off-by: Daniel Hahler <git@thequod.de>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20150721100836.GV382@greenie.muc.de>
URL: http://article.gmane.org/gmane.network.openvpn.devel/9932
Signed-off-by: Gert Doering <gert@greenie.muc.de>
This commit is contained in:
parent
d4fbe287fc
commit
82acf21634
1 changed files with 1 additions and 1 deletions
|
|
@ -4325,7 +4325,7 @@ add_option (struct options *options,
|
|||
}
|
||||
#endif
|
||||
#ifdef ENABLE_PLUGIN
|
||||
else if (streq (p[0], "plugin") && p[1] && !p[2])
|
||||
else if (streq (p[0], "plugin") && p[1] && !p[3])
|
||||
{
|
||||
VERIFY_PERMISSION (OPT_P_PLUGIN);
|
||||
if (!options->plugin_list)
|
||||
|
|
|
|||
Loading…
Reference in a new issue