diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-05-16 12:45:56 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-05-16 12:45:56 +0000 |
commit | 3a03bbb4b950948d18e0e6c263fad2dca4e1a7c5 (patch) | |
tree | fcd38eb2e5e60a161a1dfe6da7880f349b450b5e /src/transport/plugin_transport_udp_broadcasting.c | |
parent | 12b5faf3eeb5bd10b3ad6f74d6f74d90299dbb3c (diff) | |
download | gnunet-3a03bbb4b950948d18e0e6c263fad2dca4e1a7c5.tar.gz gnunet-3a03bbb4b950948d18e0e6c263fad2dca4e1a7c5.zip |
fixing memory leaks in udp
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 == |