aboutsummaryrefslogtreecommitdiff
path: root/src/vpn
diff options
context:
space:
mode:
authorPhilipp Tölke <toelke@in.tum.de>2011-06-15 07:15:47 +0000
committerPhilipp Tölke <toelke@in.tum.de>2011-06-15 07:15:47 +0000
commit2e28f9f0fa52c73c8d4a0d8c31dc7b9b0eef6a47 (patch)
tree33ae9db4e8ca23f52ec5d741a1fb8fd9e66ad6eb /src/vpn
parent995c6a248f7254183abf347846cad0c37de03895 (diff)
Mesh calls me with a NULL peer to terminate the list of peers
Diffstat (limited to 'src/vpn')
-rw-r--r--src/vpn/gnunet-service-dns.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vpn/gnunet-service-dns.c b/src/vpn/gnunet-service-dns.c
index a9deb58ade..534be5626d 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;