commit | 5519d9f0544264fe71e0badd3d858d8ffbef2431 | [log] [tgz] |
---|---|---|
author | Nick Dowell <nick@nickdowell.com> | Tue Apr 03 17:22:19 2012 +0100 |
committer | Andy Green <andy.green@linaro.org> | Wed Apr 04 08:27:35 2012 +0800 |
tree | e5fc6d0179888a3bbd9c13e13ee4986a64758de1 | |
parent | 15601fd8f10b9e1b0774235e8a9298c47707f363 [diff] |
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>