From dbd9cf8fadb8d2911a20ad4fd3ddb708a7b77dba Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Sat, 2 Feb 2013 16:15:09 +0100 Subject: Fix an assertion if tun is closed from openvpn_exit --- openvpn/src/openvpn/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openvpn/src/openvpn/misc.c b/openvpn/src/openvpn/misc.c index fcc85526..1e9a7fc0 100644 --- a/openvpn/src/openvpn/misc.c +++ b/openvpn/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); -- cgit v1.2.3