From: Samuli Seppänen Date: Tue, 31 May 2011 13:17:40 +0000 (+0300) Subject: Fix a Visual Studio 2008 build issue in socket.c X-Git-Tag: v2.3-alpha1~193 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=298036413aaf978e1c5bfb0c8c987a6727e56cf9;p=thirdparty%2Fopenvpn.git Fix a Visual Studio 2008 build issue in socket.c Signed-off-by: Gert Doering Signed-off-by: Samuli Seppänen Acked-by: Gert Doering Signed-off-by: David Sommerseth --- diff --git a/socket.c b/socket.c index 130e08e09..364585d17 100644 --- a/socket.c +++ b/socket.c @@ -652,8 +652,9 @@ update_remote (const char* host, if (host && addr) { struct sockaddr_in6 sin6; + int success; CLEAR(sin6); - int success = getaddr6 ( + success = getaddr6 ( sf2gaf(GETADDR_RESOLVE|GETADDR_UPDATE_MANAGEMENT_STATE, sockflags), host, 1,