From: james Date: Wed, 19 Nov 2008 18:07:52 +0000 (+0000) Subject: Fixed issue introduced in 2.1_rc14 that may cause a X-Git-Tag: v2.1_rc15~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bb9f5aa043b30295e981df172f7c9251d248769;p=thirdparty%2Fopenvpn.git Fixed issue introduced in 2.1_rc14 that may cause a segfault when a --plugin module is used. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3524 e7ae566f-a301-0410-adde-c780ea21d3b5 --- diff --git a/misc.c b/misc.c index 5f890884e..b57e83a1f 100644 --- a/misc.c +++ b/misc.c @@ -1863,8 +1863,8 @@ argv_clone (const struct argv *a, const size_t headroom) { for (i = 0; i < a->argc; ++i) argv_append (&r, string_alloc (a->argv[i], NULL)); + r.system_str = string_alloc (a->system_str, NULL); } - r.system_str = string_alloc (a->system_str, NULL); return r; }