From 3f3bb638d5678212e67a7c1204fb75a9e081d83b Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Tue, 4 Feb 2014 18:51:35 +0000 Subject: [PATCH] - ignore NULL hellos --- src/mesh/gnunet-service-mesh_peer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesh/gnunet-service-mesh_peer.c b/src/mesh/gnunet-service-mesh_peer.c index 569eda84b..ef5912ba6 100644 --- a/src/mesh/gnunet-service-mesh_peer.c +++ b/src/mesh/gnunet-service-mesh_peer.c @@ -1888,6 +1888,9 @@ GMP_set_hello (struct MeshPeer *peer, const struct GNUNET_HELLO_Message *hello) struct GNUNET_HELLO_Message *old; size_t size; + if (NULL == hello) + return; + old = GMP_get_hello (peer); if (NULL == old) { -- 2.25.1