From 8f79f0a40f152ac5cd9b01e63fcfd0663a11c5ed Mon Sep 17 00:00:00 2001 From: Philipp Tölke Date: Wed, 15 Jun 2011 07:15:37 +0000 Subject: fix bug (invariant) ; --- src/mesh/mesh_api.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mesh') diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c index 72428790e..971f491d2 100644 --- a/src/mesh/mesh_api.c +++ b/src/mesh/mesh_api.c @@ -166,6 +166,7 @@ core_startup (void *cls, static size_t send_hello_message (void *cls, size_t size, void *buf) { + if (cls == NULL) return 0; struct GNUNET_MESH_Handle *handle = cls; struct GNUNET_MessageHeader *hdr = buf; -- cgit v1.2.3