fix initialized value in udp on invalid address
authorMatthias Wachs <wachs@net.in.tum.de>
Fri, 21 Mar 2014 12:56:24 +0000 (12:56 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Fri, 21 Mar 2014 12:56:24 +0000 (12:56 +0000)
fix log message

src/transport/gnunet-service-transport_neighbours.c
src/transport/plugin_transport_udp.c

index 374dc710993003919647730c86231f16054cebaf..6fc8fb6e1cba36315c1e8762352c45a4fc1bd720 100644 (file)
@@ -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,
index a25dfb33471775e8a7bb648a4f3a15282ac45bae..e3ee55299eb157f61ab3255c077ad0c3ffe5ca62 100644 (file)
@@ -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);