- error msg
authorMatthias Wachs <wachs@net.in.tum.de>
Fri, 30 Mar 2012 12:27:50 +0000 (12:27 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Fri, 30 Mar 2012 12:27:50 +0000 (12:27 +0000)
src/transport/plugin_transport_udp.c

index 4f422cfa05cac8e9534a7f3b56c8af4dc4681d68..fb03392a4013a9b8055788f36207dfbc5d9a889e 100644 (file)
@@ -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)
   {