diff options
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]; |