diff options
-rw-r--r-- | src/mesh/gnunet-service-mesh_peer.c | 2 | ||||
-rw-r--r-- | src/mesh/gnunet-service-mesh_tunnel.c | 5 |
2 files changed, 6 insertions, 1 deletions
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) | |||
1324 | * Re-running the DHT GET should give core time to callback. | 1324 | * Re-running the DHT GET should give core time to callback. |
1325 | */ | 1325 | */ |
1326 | GNUNET_break(0); | 1326 | GNUNET_break(0); |
1327 | rerun_search = GNUNET_YES; | 1327 | rerun_search = GNUNET_YES; |
1328 | } | 1328 | } |
1329 | else | 1329 | else |
1330 | { | 1330 | { |
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) | |||
1828 | 1828 | ||
1829 | GNUNET_CRYPTO_hash_create_random (GNUNET_CRYPTO_QUALITY_NONCE, &cid); | 1829 | GNUNET_CRYPTO_hash_create_random (GNUNET_CRYPTO_QUALITY_NONCE, &cid); |
1830 | c = GMC_new (&cid, t, p, own_pos); | 1830 | c = GMC_new (&cid, t, p, own_pos); |
1831 | if (NULL == c) | ||
1832 | { | ||
1833 | /* Path was flawed */ | ||
1834 | return NULL; | ||
1835 | } | ||
1831 | GMT_add_connection (t, c); | 1836 | GMT_add_connection (t, c); |
1832 | return c; | 1837 | return c; |
1833 | } | 1838 | } |