summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tun.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tun.c b/tun.c
index 3938c25..aa17c36 100644
--- a/tun.c
+++ b/tun.c
@@ -4859,6 +4859,7 @@ close_tun (struct tuntap *tt)
{
if ( tt->ipv6 && tt->did_ifconfig_ipv6_setup )
{
+ const char *ifconfig_ipv6_local;
struct argv argv;
argv_init (&argv);
@@ -4866,7 +4867,7 @@ close_tun (struct tuntap *tt)
delete_route_connected_v6_net(tt, NULL);
/* netsh interface ipv6 delete address \"%s\" %s */
- const char * ifconfig_ipv6_local = print_in6_addr (tt->local_ipv6, 0, &gc);
+ ifconfig_ipv6_local = print_in6_addr (tt->local_ipv6, 0, &gc);
argv_printf (&argv,
"%s%sc interface ipv6 delete address %s %s",
get_win_sys_path(),