From: Philipp Tölke Date: Wed, 15 Jun 2011 07:15:47 +0000 (+0000) Subject: Mesh calls me with a NULL peer to terminate the list of peers X-Git-Tag: initial-import-from-subversion-38251~18171 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2e28f9f0fa52c73c8d4a0d8c31dc7b9b0eef6a47;p=oweals%2Fgnunet.git Mesh calls me with a NULL peer to terminate the list of peers --- diff --git a/src/vpn/gnunet-service-dns.c b/src/vpn/gnunet-service-dns.c index a9deb58ad..534be5626 100644 --- a/src/vpn/gnunet-service-dns.c +++ b/src/vpn/gnunet-service-dns.c @@ -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;