From 2c69d7d945756a8bdbe493df22b95426715684e1 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Fri, 17 Jan 2014 08:47:40 +0000 Subject: [PATCH] fix ftbfs on system where SIN_LEN exists --- src/transport/plugin_transport_udp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index e44a32e44..01b0e31b1 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c @@ -1462,7 +1462,7 @@ udp_plugin_create_session (void *cls, memset (&v4, '\0', sizeof (v4)); v4.sin_family = AF_INET; #if HAVE_SOCKADDR_IN_SIN_LEN - v4->sin_len = sizeof (struct sockaddr_in); + v4.sin_len = sizeof (struct sockaddr_in); #endif v4.sin_port = udp_v4->u4_port; v4.sin_addr.s_addr = udp_v4->ipv4_addr; @@ -1476,7 +1476,7 @@ udp_plugin_create_session (void *cls, memset (&v6, '\0', sizeof (v6)); v6.sin6_family = AF_INET6; #if HAVE_SOCKADDR_IN_SIN_LEN - v6->sin_len = sizeof (struct sockaddr_in6); + v6.sin_len = sizeof (struct sockaddr_in6); #endif v6.sin6_port = udp_v6->u6_port; v6.sin6_addr = udp_v6->ipv6_addr; -- 2.25.1