The construct_name_value eventually call gc_malloc with NULL as gc which will trigger an assertion --- src/openvpn/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/openvpn/misc.c b/src/openvpn/misc.c index fcc8552..1e9a7fc 100644 --- a/src/openvpn/misc.c +++ b/src/openvpn/misc.c @@ -804,7 +804,7 @@ setenv_str_ex (struct env_set *es, } else { - char *str = construct_name_value (name_tmp, val_tmp, NULL); + char *str = construct_name_value (name_tmp, val_tmp, &gc); if (platform_putenv(str)) { msg (M_WARN | M_ERRNO, "putenv('%s') failed", str); -- 1.7.9.5