Mesh calls me with a NULL peer to terminate the list of peers
authorPhilipp Tölke <toelke@in.tum.de>
Wed, 15 Jun 2011 07:15:47 +0000 (07:15 +0000)
committerPhilipp Tölke <toelke@in.tum.de>
Wed, 15 Jun 2011 07:15:47 +0000 (07:15 +0000)
src/vpn/gnunet-service-dns.c

index a9deb58ade0baa3e9f0d0d71d196025b28061c14..534be5626d847d81690126e060be7e60844e970a 100644 (file)
@@ -238,6 +238,7 @@ mesh_send (void *cls, size_t size, void *buf)
 
 
 void mesh_connect (void* cls, const struct GNUNET_PeerIdentity* peer, const struct GNUNET_TRANSPORT_ATS_Information *atsi __attribute__((unused))) {
+  if (NULL == peer) return;
   GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "Connected to peer %x\n", *((unsigned long*)peer));
   struct tunnel_cls *cls_ = (struct tunnel_cls*)cls;