aboutsummaryrefslogtreecommitdiff
path: root/src/mesh
diff options
context:
space:
mode:
authorPhilipp Tölke <toelke@in.tum.de>2011-10-05 09:41:31 +0000
committerPhilipp Tölke <toelke@in.tum.de>2011-10-05 09:41:31 +0000
commitcc632e434054d618798957fcdb1804f69c8dfc78 (patch)
treefedd8fb9fc43ae4e538139724c0c12dcc3856157 /src/mesh
parent2478a8f68e5958994c2678484cd31843c05d4efd (diff)
downloadgnunet-cc632e434054d618798957fcdb1804f69c8dfc78.tar.gz
gnunet-cc632e434054d618798957fcdb1804f69c8dfc78.zip
core gives a buf of NULL to indicate errors
Diffstat (limited to 'src/mesh')
-rw-r--r--src/mesh/mesh_api.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c
index 4b6731d3f..5bb7d1403 100644
--- a/src/mesh/mesh_api.c
+++ b/src/mesh/mesh_api.c
@@ -675,6 +675,9 @@ core_notify (void *cls, size_t size, void *buf)
675 struct notify_cls *ncls = cls; 675 struct notify_cls *ncls = cls;
676 struct GNUNET_MESH_Tunnel *tunnel = ncls->tunnel; 676 struct GNUNET_MESH_Tunnel *tunnel = ncls->tunnel;
677 677
678 if (NULL == buf)
679 return ncls->notify (ncls->notify_cls, 0, NULL);
680
678 tunnel->notify_handle = NULL; 681 tunnel->notify_handle = NULL;
679 struct tunnel_message *message = buf; 682 struct tunnel_message *message = buf;
680 void *cbuf = (void *) &message[1]; 683 void *cbuf = (void *) &message[1];