]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
options: fix option check for "plugin"
authorDaniel Hahler <git@thequod.de>
Sun, 19 Jul 2015 19:55:22 +0000 (21:55 +0200)
committerGert Doering <gert@greenie.muc.de>
Wed, 22 Jul 2015 07:08:43 +0000 (09:08 +0200)
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>
src/openvpn/options.c

index 76e6b6522bd150fec918e01d92a4e00dbd2ba87d..93baa2b0d8b1d75db1e1574bf146e92315cdef25 100644 (file)
@@ -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)