Signed-off-by: James Yonan <ja...@openvpn.net>
---
 src/openvpn/socket.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/openvpn/socket.c b/src/openvpn/socket.c
index 7ff14cc..6e68c18 100644
--- a/src/openvpn/socket.c
+++ b/src/openvpn/socket.c
@@ -1150,7 +1150,6 @@ resolve_bind_local (struct link_socket *sock)
        case AF_INET6:
            {
              int status;
-             int err;
              CLEAR(sock->info.lsa->local.addr.in6);
              if (sock->local_host)
                {
@@ -1173,7 +1172,7 @@ resolve_bind_local (struct link_socket *sock)
                {
                  msg (M_FATAL, "getaddr6() failed for local \"%s\": %s",
                       sock->local_host,
-                      gai_strerror(err));
+                      gai_strerror(status));
                }
              sock->info.lsa->local.addr.in6.sin6_port = htons 
(sock->local_port);
            }
-- 
1.8.5.5


Reply via email to