kore

An easy to use, scalable and secure web application framework for writing web APIs in C.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 77364e49cd3ae1963e36fb07fffe33fedbf7cea9
parent 1ed96b12a97247dfb8611a2271cf9baa65c5b625
Author: Joris Vink <joris@coders.se>
Date:   Wed,  2 Dec 2015 21:57:16 +0100

Do not call handle if not set, similar to bsd.c.

Diffstat:
src/linux.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/linux.c b/src/linux.c @@ -154,7 +154,7 @@ kore_platform_event_wait(u_int64_t timer) !(c->flags & CONN_WRITE_BLOCK)) c->flags |= CONN_WRITE_POSSIBLE; - if (!c->handle(c)) + if (c->handle != NULL && !c->handle(c)) kore_connection_disconnect(c); break; #if defined(KORE_USE_PGSQL)