]> git.meshlink.io Git - meshlink/commitdiff
Return an appropriate value from channel_accept.
authorAaron Krebs <aaron.krebs@everbase.net>
Tue, 2 Dec 2014 16:39:18 +0000 (17:39 +0100)
committerGuus Sliepen <guus@meshlink.io>
Sat, 27 Dec 2014 17:40:23 +0000 (18:40 +0100)
src/meshlink++.h

index 176dd1b6d95d3c1c08bb25750990407a58d28caf..f1a3b96270e44fb084c1a7648df4bef50a45832e 100644 (file)
@@ -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<mesh*>(handle->priv);
                        bool accepted = that->channel_accept(static_cast<meshlink::channel*>(channel), port, data, len);
                        if (accepted)