From: Bart Polot Date: Tue, 4 Feb 2014 18:51:35 +0000 (+0000) Subject: - ignore NULL hellos X-Git-Tag: initial-import-from-subversion-38251~4784 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3f3bb638d5678212e67a7c1204fb75a9e081d83b;p=oweals%2Fgnunet.git - ignore NULL hellos --- 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) {