Fix testcase
[oweals/gnunet.git] / src / mesh / mesh_api.c
index 0f7592056d965b1d3d7bb34cc6a04a3c91bf6ab4..30bd13f46d421104256c4201cbf01fe09df54e80 100644 (file)
@@ -672,11 +672,11 @@ core_notify (void *cls, size_t size, void *buf)
 {
   struct notify_cls *ncls = cls;
   struct GNUNET_MESH_Tunnel *tunnel = ncls->tunnel;
+  tunnel->notify_handle = NULL;
 
   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];