From 7bb9f5aa043b30295e981df172f7c9251d248769 Mon Sep 17 00:00:00 2001 From: james Date: Wed, 19 Nov 2008 18:07:52 +0000 Subject: 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 --- misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc.c') 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; } -- cgit