From 6c5b8059574607a19bc929f74926a35be328cefc Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Fri, 21 Mar 2014 12:56:24 +0000 Subject: [PATCH] fix initialized value in udp on invalid address fix log message --- src/transport/gnunet-service-transport_neighbours.c | 8 +++++--- src/transport/plugin_transport_udp.c | 6 +++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c index 374dc7109..6fc8fb6e1 100644 --- a/src/transport/gnunet-service-transport_neighbours.c +++ b/src/transport/gnunet-service-transport_neighbours.c @@ -1620,9 +1620,11 @@ send_session_connect_cont (void *cls, if (GNUNET_OK == result) return; - GNUNET_log (GNUNET_ERROR_TYPE_ERROR, - _("Failed to send CONNECT message to peer `%s'\n"), - (GNUNET_OK == result) ? "OK" : "ERROR"); + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + _("Failed to send CONNECT message to peer `%s' using address `%s' session %p\n"), + GNUNET_i2s (target), + GST_plugins_a2s (n->primary_address.address), + n->primary_address.session); /* Failed to send CONNECT message with this address */ GNUNET_ATS_address_destroyed (GST_ats, n->primary_address.address, 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, } else { - GNUNET_break (0); + call_continuation (udpw, GNUNET_OK); + dequeue (plugin, udpw); + GNUNET_free (udpw); + return GNUNET_SYSERR; } + sent = GNUNET_NETWORK_socket_sendto (sock, udpw->msg_buf, udpw->msg_size, a, slen); -- 2.25.1