summaryrefslogtreecommitdiff
path: root/openvpn/src
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2013-02-02 16:15:09 +0100
committerArne Schwabe <arne@rfc2549.org>2013-02-02 16:15:09 +0100
commitdbd9cf8fadb8d2911a20ad4fd3ddb708a7b77dba (patch)
treed7db07ee38452382aa705c601f08b9dd4ba5fe5b /openvpn/src
parentf4b9c3edf8d35c7246853dac72eecd57b248e97f (diff)
Fix an assertion if tun is closed from openvpn_exit
Diffstat (limited to 'openvpn/src')
-rw-r--r--openvpn/src/openvpn/misc.c2
1 files changed, 1 insertions, 1 deletions
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);