From b901fca3e5379b73f5080732b0bf2d43df4b9291 Mon Sep 17 00:00:00 2001 From: Aaron Krebs Date: Tue, 2 Dec 2014 17:39:18 +0100 Subject: [PATCH] Return an appropriate value from channel_accept. --- src/meshlink++.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meshlink++.h b/src/meshlink++.h index 176dd1b6..f1a3b962 100644 --- a/src/meshlink++.h +++ b/src/meshlink++.h @@ -506,7 +506,7 @@ namespace meshlink { static bool channel_accept_trampoline(meshlink_handle_t *handle, meshlink_channel *channel, uint16_t port, const void *data, size_t len) { if (!(handle->priv)) - return; + return false; meshlink::mesh* that = static_cast(handle->priv); bool accepted = that->channel_accept(static_cast(channel), port, data, len); if (accepted) -- 2.39.5