summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-11-19 18:07:52 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-11-19 18:07:52 +0000
commit7bb9f5aa043b30295e981df172f7c9251d248769 (patch)
tree4bf2a5bd4a6d82092646cb2c0d3f247d2456e4b7
parentae3b37460b677ebd6f1ad12dab76055e7879fcaf (diff)
downloadopenvpn-7bb9f5aa043b30295e981df172f7c9251d248769.tar.gz
openvpn-7bb9f5aa043b30295e981df172f7c9251d248769.tar.xz
openvpn-7bb9f5aa043b30295e981df172f7c9251d248769.zip
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
-rw-r--r--misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc.c b/misc.c
index 5f89088..b57e83a 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;
}