- ignore NULL hellos
authorBart Polot <bart@net.in.tum.de>
Tue, 4 Feb 2014 18:51:35 +0000 (18:51 +0000)
committerBart Polot <bart@net.in.tum.de>
Tue, 4 Feb 2014 18:51:35 +0000 (18:51 +0000)
src/mesh/gnunet-service-mesh_peer.c

index 569eda84bccce534e62d4b54ae234842bc1472e2..ef5912ba632fb714435ba584d98dccc0fae580bb 100644 (file)
@@ -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)
   {