libwebsockets/lib
Andy Green 2af4d5b2e2 remove lws_ensure_user_space from public api change return
The function has a logical problem when the size of the requested
allocation is 0, it will return NULL which is overloaded as
failure.

Actually the whole function is evil as an api, this patch moves
it out of the public API space and fixes it to return 0 for
success or 1 for fail.  Private code does not need to to return
wsi->user_space and public code should only get that from the
callback as discussed on trac recently.

Thanks to Edwin for debugging the problem.

Reported-by: Edwin van den Oetelaar <oetelaar.automatisering@gmail.com>
Signed-off-by: Andy Green <andy.green@linaro.org>
2013-02-18 16:30:10 +08:00
..
.gitignore Ignoring linux build files 2013-01-09 15:46:11 +08:00
base64-decode.c CMake support + fixed windows build. 2013-02-06 15:49:12 +09:00
client-handshake.c fix no extensions build 2013-02-18 10:43:18 +08:00
client-parser.c fix no extensions build 2013-02-18 10:43:18 +08:00
client.c remove lws_ensure_user_space from public api change return 2013-02-18 16:30:10 +08:00
daemonize.c style cleanup 2013-02-11 17:13:32 +08:00
extension-deflate-frame.c style cleanup 2013-02-11 17:13:32 +08:00
extension-deflate-frame.h Separate compression levels for server and client, 2013-01-10 12:45:54 +08:00
extension-deflate-stream.c style cleanup 2013-02-11 17:13:32 +08:00
extension-deflate-stream.h remove fixed rx buffer allow definition per protocol 2013-02-08 13:16:07 +08:00
extension.c Fixed DLL compilation on Windows for CMake. 2013-02-13 09:29:26 +08:00
getifaddrs.c style cleanup 2013-02-11 17:13:32 +08:00
getifaddrs.h style cleanup 2013-02-11 17:13:32 +08:00
handshake.c remove lws_ensure_user_space from public api change return 2013-02-18 16:30:10 +08:00
libwebsockets.c remove lws_ensure_user_space from public api change return 2013-02-18 16:30:10 +08:00
libwebsockets.h remove lws_ensure_user_space from public api change return 2013-02-18 16:30:10 +08:00
Makefile.am disable fstack usage 2013-02-13 09:08:43 +08:00
minilex.c add lexical parser for headers 2013-01-18 01:55:48 +08:00
output.c fix another escaape runon 2013-02-12 12:53:36 +08:00
parsers.c remove header name buffer 2013-02-18 10:22:42 +08:00
private-libwebsockets.h remove lws_ensure_user_space from public api change return 2013-02-18 16:30:10 +08:00
server-handshake.c remove lws_ensure_user_space from public api change return 2013-02-18 16:30:10 +08:00
server.c remove header name buffer 2013-02-18 10:22:42 +08:00
sha-1.c Static variable is now const. 2013-01-09 15:14:31 +08:00