commit | 512c246338f38f093712943cee6701ff42fab68f | [log] [tgz] |
---|---|---|
author | Andy Green <andy.green@linaro.org> | Wed Sep 18 12:59:33 2013 +0800 |
committer | Andy Green <andy.green@linaro.org> | Wed Sep 18 12:59:33 2013 +0800 |
tree | b930a9c7f574433811393a35c42488bfb41f1469 | |
parent | 578a24df3dd6b7dd19d101fccee443d767d08fdb [diff] [blame] |
trac #39: allow fd 0 for connection Reported (with fix) by Martijn The http://libwebsockets.org/trac/ticket/39 Signed-off-by: Andy Green <andy.green@linaro.org>
diff --git a/lib/libwebsockets.c b/lib/libwebsockets.c index 661876e..49ae8e0 100644 --- a/lib/libwebsockets.c +++ b/lib/libwebsockets.c
@@ -113,7 +113,7 @@ } assert(wsi); - assert(wsi->sock); + assert(wsi->sock >= 0); lwsl_info("insert_wsi_socket_into_fds: wsi=%p, sock=%d, fds pos=%d\n", wsi, wsi->sock, context->fds_count);