diff options
author | Philipp Tölke <toelke@in.tum.de> | 2011-10-05 09:41:31 +0000 |
---|---|---|
committer | Philipp Tölke <toelke@in.tum.de> | 2011-10-05 09:41:31 +0000 |
commit | cc632e434054d618798957fcdb1804f69c8dfc78 (patch) | |
tree | fedd8fb9fc43ae4e538139724c0c12dcc3856157 /src/mesh | |
parent | 2478a8f68e5958994c2678484cd31843c05d4efd (diff) | |
download | gnunet-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.c | 3 |
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]; |