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

fix-error-path-on-server-headers-wrong.patch


Signed-off-by: default avatarAndy Green <andy@warmcat.com>
parent 990d5062
No related branches found
No related tags found
No related merge requests found
...@@ -142,6 +142,7 @@ libwebsocket_client_connect(struct libwebsocket_context *this, ...@@ -142,6 +142,7 @@ libwebsocket_client_connect(struct libwebsocket_context *this,
wsi->user_space = NULL; wsi->user_space = NULL;
wsi->state = WSI_STATE_CLIENT_UNCONNECTED; wsi->state = WSI_STATE_CLIENT_UNCONNECTED;
wsi->pings_vs_pongs = 0; wsi->pings_vs_pongs = 0;
wsi->protocol = NULL;
for (n = 0; n < WSI_TOKEN_COUNT; n++) { for (n = 0; n < WSI_TOKEN_COUNT; n++) {
wsi->utf8_token[n].token = NULL; wsi->utf8_token[n].token = NULL;
...@@ -399,7 +400,8 @@ libwebsocket_client_connect(struct libwebsocket_context *this, ...@@ -399,7 +400,8 @@ libwebsocket_client_connect(struct libwebsocket_context *this,
(!wsi->utf8_token[WSI_TOKEN_PROTOCOL].token_len && (!wsi->utf8_token[WSI_TOKEN_PROTOCOL].token_len &&
protocol != NULL)) { protocol != NULL)) {
fprintf(stderr, "libwebsocket_client_handshake " fprintf(stderr, "libwebsocket_client_handshake "
"missing required header\n"); "missing required header(s)\n");
fprintf(stderr, "%s", pkt);
goto bail2; goto bail2;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment