From: Matthias Wachs Date: Fri, 30 Mar 2012 12:27:50 +0000 (+0000) Subject: - error msg X-Git-Tag: initial-import-from-subversion-38251~14055 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bab2ead70660878c4e87fc6b420434fc8810d7d6;p=oweals%2Fgnunet.git - error msg --- 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) {