Skip to content
Snippets Groups Projects
Commit afa10d5a authored by Andy Green's avatar Andy Green
Browse files

fix spinning on NULL protocol name

parent 62824f96
Branches
Tags
No related merge requests found
......@@ -389,8 +389,10 @@ int lws_handshake_server(struct libwebsocket_context *context,
n = 0;
while (context->protocols[n].callback) {
if (!wsi->protocol->name)
if (!wsi->protocol->name) {
n++;
continue;
}
if (!strcmp(context->protocols[n].name,
protocol_name)) {
lwsl_info("prot match %d\n", n);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment