- add underlay api implementation
[oweals/gnunet.git] / src / mesh / gnunet-service-mesh_peer.c
index 8950ccdb7528a7a79111e18781a7d40bf81b2f1d..fe44e6708f5a644db5fb90fc9893a4e87eccac05 100644 (file)
@@ -413,6 +413,9 @@ send_core_connection_create (struct MeshConnection *c, size_t size, void *buf)
   size_t size_needed;
   int i;
 
+  if (NULL == p)
+    return 0;
+
   LOG (GNUNET_ERROR_TYPE_DEBUG, "Sending CONNECTION CREATE...\n");
   size_needed =
       sizeof (struct GNUNET_MESH_ConnectionCreate) +
@@ -969,7 +972,6 @@ GMP_queue_destroy (struct MeshPeerQueue *queue, int clear_cls)
  * @param size Size of the message.
  * @param c Connection this message belongs to (cannot be NULL).
  * @param fwd Is this a message going root->dest? (FWD ACK are NOT FWD!)
- * @param force Force the tunnel to take the message (buffer overfill).
  * @param cont Continuation to be called once CORE has taken the message.
  * @param cont_cls Closure for @c cont.
  *
@@ -1325,7 +1327,7 @@ GMP_connect (struct MeshPeer *peer)
          * Re-running the DHT GET should give core time to callback.
          */
         GNUNET_break(0);
-                rerun_search = GNUNET_YES;
+        rerun_search = GNUNET_YES;
       }
       else
       {