diff options
author | Daniel Hahler <git@thequod.de> | 2015-07-19 21:55:22 +0200 |
---|---|---|
committer | Gert Doering <gert@greenie.muc.de> | 2015-07-22 09:08:43 +0200 |
commit | 82acf2163412aae9259e2202dbe001a2ac797b99 (patch) | |
tree | b5031b6f3b863cafe97e5bc98319fb14567b9bc1 /src | |
parent | d4fbe287fc2ddbef05fdfe22adc641859a8a7412 (diff) | |
download | openvpn-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')
-rw-r--r-- | src/openvpn/options.c | 2 |
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) |