From cc632e434054d618798957fcdb1804f69c8dfc78 Mon Sep 17 00:00:00 2001 From: Philipp Tölke Date: Wed, 5 Oct 2011 09:41:31 +0000 Subject: core gives a buf of NULL to indicate errors --- src/mesh/mesh_api.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mesh') 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) struct notify_cls *ncls = cls; struct GNUNET_MESH_Tunnel *tunnel = ncls->tunnel; + if (NULL == buf) + return ncls->notify (ncls->notify_cls, 0, NULL); + tunnel->notify_handle = NULL; struct tunnel_message *message = buf; void *cbuf = (void *) &message[1]; -- cgit v1.2.3