mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
fix-error-path-on-server-headers-wrong.patch
Signed-off-by: Andy Green <andy@warmcat.com>
This commit is contained in:
parent
990d5062d0
commit
927eb7b90d
1 changed files with 3 additions and 1 deletions
|
@ -142,6 +142,7 @@ libwebsocket_client_connect(struct libwebsocket_context *this,
|
|||
wsi->user_space = NULL;
|
||||
wsi->state = WSI_STATE_CLIENT_UNCONNECTED;
|
||||
wsi->pings_vs_pongs = 0;
|
||||
wsi->protocol = NULL;
|
||||
|
||||
for (n = 0; n < WSI_TOKEN_COUNT; n++) {
|
||||
wsi->utf8_token[n].token = NULL;
|
||||
|
@ -399,7 +400,8 @@ libwebsocket_client_connect(struct libwebsocket_context *this,
|
|||
(!wsi->utf8_token[WSI_TOKEN_PROTOCOL].token_len &&
|
||||
protocol != NULL)) {
|
||||
fprintf(stderr, "libwebsocket_client_handshake "
|
||||
"missing required header\n");
|
||||
"missing required header(s)\n");
|
||||
fprintf(stderr, "%s", pkt);
|
||||
goto bail2;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue