From d756e4aa680f7af668a434736888f1782de33525 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Mon, 9 Dec 2013 18:12:33 +0000 Subject: [PATCH] - relay error to peer, indentation --- src/mesh/gnunet-service-mesh_peer.c | 2 +- src/mesh/gnunet-service-mesh_tunnel.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mesh/gnunet-service-mesh_peer.c b/src/mesh/gnunet-service-mesh_peer.c index 4b0a95133..2f92692e4 100644 --- a/src/mesh/gnunet-service-mesh_peer.c +++ b/src/mesh/gnunet-service-mesh_peer.c @@ -1324,7 +1324,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 { diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c index 7070e9b52..4cd1f4713 100644 --- a/src/mesh/gnunet-service-mesh_tunnel.c +++ b/src/mesh/gnunet-service-mesh_tunnel.c @@ -1828,6 +1828,11 @@ GMT_use_path (struct MeshTunnel3 *t, struct MeshPeerPath *p) GNUNET_CRYPTO_hash_create_random (GNUNET_CRYPTO_QUALITY_NONCE, &cid); c = GMC_new (&cid, t, p, own_pos); + if (NULL == c) + { + /* Path was flawed */ + return NULL; + } GMT_add_connection (t, c); return c; } -- 2.25.1