From: Aaron Krebs Date: Tue, 2 Dec 2014 16:39:18 +0000 (+0100) Subject: Return an appropriate value from channel_accept. X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=b901fca3e5379b73f5080732b0bf2d43df4b9291;p=meshlink Return an appropriate value from channel_accept. --- 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)