From: James Yonan Date: Thu, 8 May 2014 22:50:32 +0000 (-0600) Subject: In socket.c, fixed issue where uninitialized value (err) is being passed to to gai_st... X-Git-Tag: v2.3.5~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=302655c98503850765f860951a2b80280bc17385;p=thirdparty%2Fopenvpn.git In socket.c, fixed issue where uninitialized value (err) is being passed to to gai_strerror. Signed-off-by: James Yonan Acked-by: Gert Doering Message-Id: <1399589436-8730-3-git-send-email-james@openvpn.net> URL: http://article.gmane.org/gmane.network.openvpn.devel/8713 Signed-off-by: Gert Doering --- diff --git a/src/openvpn/socket.c b/src/openvpn/socket.c index 7ff14cc75..6e68c18aa 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); }