]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Fix a Visual Studio 2008 build issue in socket.c
authorSamuli Seppänen <samuli@openvpn.net>
Tue, 31 May 2011 13:17:40 +0000 (16:17 +0300)
committerDavid Sommerseth <davids@redhat.com>
Thu, 25 Aug 2011 18:12:37 +0000 (20:12 +0200)
Signed-off-by: Gert Doering <gert@greenie.muc.de>
Signed-off-by: Samuli Seppänen <samuli@openvpn.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Signed-off-by: David Sommerseth <davids@redhat.com>
socket.c

index 130e08e09283a0e3ee54a06aaae4b60df637228f..364585d1715d82b7d38c383202c24580a6df12f5 100644 (file)
--- 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,