libwebsockets/lib
Nick Dowell 5519d9f054 handle unsupported protocol correctly
Hi Andy,

First off, thanks for libwebsockets :-)

I've encountered a crash when a client connects to a libwebsockets server
but speicifies an unsupported protocol (Sec-WebSocket-Protocol).
handshake.c should probably be checking that wsi->protocol->name is not
null before doing a strcmp with it...
Attached is a patch for your consideration.

Cheers!
Nick

Signed-off-by: Nick Dowell <nick@nickdowell.com>
2012-04-04 08:27:35 +08:00
..
base64-decode.c remove line end at 72 for base64 encode 2011-05-14 15:08:00 +02:00
client-handshake.c debug move most spew into debug macro 2011-11-07 19:53:23 +08:00
extension-deflate-stream.c debug move most spew into debug macro 2011-11-07 19:53:23 +08:00
extension-deflate-stream.h pass ext pointer in ext callback 2011-03-22 09:04:01 +00:00
extension-x-google-mux.c debug move most spew into debug macro 2011-11-07 19:53:23 +08:00
extension-x-google-mux.h x google mux handle illegal channel add indexes cleanup handle ch1 rx 2011-05-26 12:59:13 +01:00
extension.c introduce x google mux very draft indeed 2011-05-23 10:00:03 +01:00
handshake.c handle unsupported protocol correctly 2012-04-04 08:27:35 +08:00
libwebsockets.c Don't care for the human-readable part of "HTTP/1.1 101" reply 2012-02-19 17:26:17 +01:00
libwebsockets.h Add libwebsockets_ensure_user_space 2011-11-07 17:19:25 +08:00
Makefile.am introduce x google mux very draft indeed 2011-05-23 10:00:03 +01:00
Makefile.in introduce x google mux very draft indeed 2011-05-23 10:00:03 +01:00
md5.c introduce-private-md5-sha1.patch 2011-01-23 17:47:08 +00:00
parsers.c debug move most spew into debug macro 2011-11-07 19:53:23 +08:00
private-libwebsockets.h v08v13 add support v13 default 2011-09-25 09:32:54 +01:00
sha-1.c Added BYTE_ORDER definition for win32 builds. 2011-10-03 19:30:27 +08:00