From: Daniel Hahler Date: Sun, 19 Jul 2015 19:55:22 +0000 (+0200) Subject: options: fix option check for "plugin" X-Git-Tag: v2.4_alpha1~271 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82acf2163412aae9259e2202dbe001a2ac797b99;p=thirdparty%2Fopenvpn.git 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 Acked-by: Gert Doering Message-Id: <20150721100836.GV382@greenie.muc.de> URL: http://article.gmane.org/gmane.network.openvpn.devel/9932 Signed-off-by: Gert Doering --- diff --git a/src/openvpn/options.c b/src/openvpn/options.c index 76e6b6522..93baa2b0d 100644 --- a/src/openvpn/options.c +++ b/src/openvpn/options.c @@ -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)