diff options
Diffstat (limited to 'src/transport/plugin_transport_udp_broadcasting.c')
-rw-r--r-- | src/transport/plugin_transport_udp_broadcasting.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_udp_broadcasting.c b/src/transport/plugin_transport_udp_broadcasting.c index a2278f293..1f8490d5e 100644 --- a/src/transport/plugin_transport_udp_broadcasting.c +++ b/src/transport/plugin_transport_udp_broadcasting.c | |||
@@ -407,7 +407,7 @@ setup_broadcast (struct Plugin *plugin, struct sockaddr_in6 *serverAddrv6, struc | |||
407 | 407 | ||
408 | /* create IPv4 broadcast socket */ | 408 | /* create IPv4 broadcast socket */ |
409 | plugin->broadcast_ipv4 = GNUNET_NO; | 409 | plugin->broadcast_ipv4 = GNUNET_NO; |
410 | if (plugin->sockv4 != NULL) | 410 | if ((GNUNET_YES == plugin->enable_ipv4) && (plugin->sockv4 != NULL)) |
411 | { | 411 | { |
412 | int yes = 1; | 412 | int yes = 1; |
413 | 413 | ||
@@ -435,7 +435,7 @@ setup_broadcast (struct Plugin *plugin, struct sockaddr_in6 *serverAddrv6, struc | |||
435 | } | 435 | } |
436 | 436 | ||
437 | plugin->broadcast_ipv6 = GNUNET_NO; | 437 | plugin->broadcast_ipv6 = GNUNET_NO; |
438 | if (plugin->sockv6 != NULL) | 438 | if ((GNUNET_YES == plugin->enable_ipv4) && (plugin->sockv6 != NULL)) |
439 | { | 439 | { |
440 | memset (&plugin->ipv6_multicast_address, 0, sizeof (struct sockaddr_in6)); | 440 | memset (&plugin->ipv6_multicast_address, 0, sizeof (struct sockaddr_in6)); |
441 | GNUNET_assert (1 == | 441 | GNUNET_assert (1 == |