From bab2ead70660878c4e87fc6b420434fc8810d7d6 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Fri, 30 Mar 2012 12:27:50 +0000 Subject: [PATCH] - error msg --- src/transport/plugin_transport_udp.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index 4f422cfa0..fb03392a4 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c @@ -1760,7 +1760,6 @@ udp_select_send (struct Plugin *plugin, struct GNUNET_NETWORK_Handle *sock) udpw = udpw->next; } } - } if (udpw == NULL) @@ -1780,11 +1779,13 @@ udp_select_send (struct Plugin *plugin, struct GNUNET_NETWORK_Handle *sock) if (udpw->cont != NULL) udpw->cont (udpw->cont_cls, &udpw->session->target, GNUNET_SYSERR); } - LOG (GNUNET_ERROR_TYPE_DEBUG, - "UDP transmitted %u-byte message to `%s' (%d: %s)\n", - (unsigned int) (udpw->msg_size), GNUNET_a2s (sa, slen), (int) sent, - (sent < 0) ? STRERROR (errno) : "ok"); - + else + { + LOG (GNUNET_ERROR_TYPE_DEBUG, + "UDP transmitted %u-byte message to `%s' (%d: %s)\n", + (unsigned int) (udpw->msg_size), GNUNET_a2s (sa, slen), (int) sent, + (sent < 0) ? STRERROR (errno) : "ok"); + } /* This was just a message fragment */ if (udpw->frag_ctx != NULL) { -- 2.25.1