summaryrefslogtreecommitdiffstats
path: root/src/openvpn
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2015-07-19 21:55:22 +0200
committerGert Doering <gert@greenie.muc.de>2015-07-22 09:08:43 +0200
commit82acf2163412aae9259e2202dbe001a2ac797b99 (patch)
treeb5031b6f3b863cafe97e5bc98319fb14567b9bc1 /src/openvpn
parentd4fbe287fc2ddbef05fdfe22adc641859a8a7412 (diff)
downloadopenvpn-82acf2163412aae9259e2202dbe001a2ac797b99.tar.gz
openvpn-82acf2163412aae9259e2202dbe001a2ac797b99.tar.xz
openvpn-82acf2163412aae9259e2202dbe001a2ac797b99.zip
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>
Diffstat (limited to 'src/openvpn')
-rw-r--r--src/openvpn/options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvpn/options.c b/src/openvpn/options.c
index 76e6b65..93baa2b 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)