changeset 32006:3133252ce3fa

Actually set the destination address in the sockaddr_in struct for Windows as well...
author reimar
date Wed, 08 Sep 2010 18:37:55 +0000
parents f1a1e1d77c99
children b8514776c9ec
files udp_sync.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/udp_sync.c	Wed Sep 08 18:34:21 2010 +0000
+++ b/udp_sync.c	Wed Sep 08 18:37:55 2010 +0000
@@ -149,7 +149,8 @@
         setsockopt(sockfd, SOL_SOCKET, SO_BROADCAST, &one, sizeof(one));
 
 #if HAVE_WINSOCK2_H
-        ip_valid = (inet_addr(send_to_ip) != INADDR_NONE);
+        socketinfo.sin_addr.s_addr = inet_addr(send_to_ip);
+        ip_valid = socketinfo.sin_addr.s_addr != INADDR_NONE;
 #else
         ip_valid = inet_aton(send_to_ip, &socketinfo.sin_addr);
 #endif