diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2014-03-21 12:56:24 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2014-03-21 12:56:24 +0000 |
commit | 6c5b8059574607a19bc929f74926a35be328cefc (patch) | |
tree | 13a688381973c55f7c5fcbd1b810f327ab7b5ec7 /src/transport/plugin_transport_udp.c | |
parent | 737977b98db3d99f268ef47f0b3895d69831d53b (diff) | |
download | gnunet-6c5b8059574607a19bc929f74926a35be328cefc.tar.gz gnunet-6c5b8059574607a19bc929f74926a35be328cefc.zip |
fix initialized value in udp on invalid address
fix log message
Diffstat (limited to 'src/transport/plugin_transport_udp.c')
-rw-r--r-- | src/transport/plugin_transport_udp.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index a25dfb334..e3ee55299 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c | |||
@@ -2653,8 +2653,12 @@ udp_select_send (struct Plugin *plugin, | |||
2653 | } | 2653 | } |
2654 | else | 2654 | else |
2655 | { | 2655 | { |
2656 | GNUNET_break (0); | 2656 | call_continuation (udpw, GNUNET_OK); |
2657 | dequeue (plugin, udpw); | ||
2658 | GNUNET_free (udpw); | ||
2659 | return GNUNET_SYSERR; | ||
2657 | } | 2660 | } |
2661 | |||
2658 | sent = GNUNET_NETWORK_socket_sendto (sock, udpw->msg_buf, udpw->msg_size, a, | 2662 | sent = GNUNET_NETWORK_socket_sendto (sock, udpw->msg_buf, udpw->msg_size, a, |
2659 | slen); | 2663 | slen); |
2660 | 2664 | ||