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
This commit is contained in:
james 2008-11-19 18:07:52 +00:00
parent ae3b37460b
commit 7bb9f5aa04

2
misc.c
View File

@ -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;
}