From f26bf67b7cf2caf56e562b480c8ae2b9dabcb72e Mon Sep 17 00:00:00 2001 From: "Sven M. Hallberg" Date: Mon, 8 Sep 2014 21:03:48 +0200 Subject: [PATCH] set IPv4 source address correctly on Windows --- src/socket.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/socket.c b/src/socket.c index 28132db..7e893a0 100644 --- a/src/socket.c +++ b/src/socket.c @@ -544,6 +544,9 @@ int catta_send_dns_packet_ipv4( #ifdef HAVE_IPI_SPEC_DST if (src_address) pkti->ipi_spec_dst.s_addr = src_address->address; +#else + if (src_address) + pkti->ipi_addr.s_addr = src_address->address; #endif } #elif defined(IP_MULTICAST_IF) -- 2.39.5