]> git.meshlink.io Git - meshlink/blobdiff - src/net.c
Add assert() calls to the library.
[meshlink] / src / net.c
index 1e2e00cdef5eaecfc84c1cddd63e61601fc9110e..46a2631e6b5154fcce850edb445d060601c550dd 100644 (file)
--- a/src/net.c
+++ b/src/net.c
@@ -109,6 +109,8 @@ void terminate_connection(meshlink_handle_t *mesh, connection_t *c, bool report)
   and close the connection.
 */
 static void timeout_handler(event_loop_t *loop, void *data) {
+       assert(data);
+
        meshlink_handle_t *mesh = loop->data;
        logger(mesh, MESHLINK_DEBUG, "timeout_handler()");