1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

ws: tell caller we closed wsi on handshake failure

https://github.com/warmcat/libwebsockets/issues/2681
This commit is contained in:
qdztxc 2022-07-12 09:47:00 +01:00 committed by Andy Green
parent ea3a0ab9e0
commit 0a5526b958

View file

@ -270,7 +270,7 @@ hs2:
lwsl_err("Failed to generate handshake for client\n");
lws_close_free_wsi(wsi, LWS_CLOSE_STATUS_NOSTATUS,
"chs");
return 0;
return -1;
}
/* send our request to the server */