From: Samuli Seppänen <sam...@openvpn.net>

Signed-off-by: Gert Doering <g...@greenie.muc.de>
Tested-by: Samuli Seppänen <sam...@openvpn.net>
Signed-off-by: Samuli Seppänen <sam...@openvpn.net>
---
 tun.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/tun.c b/tun.c
index 8cdd248..3cf2e3e 100644
--- a/tun.c
+++ b/tun.c
@@ -4865,6 +4865,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);
 
@@ -4872,7 +4873,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(),
-- 
1.7.4.1


Reply via email to