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

coverity 169271 - take care about sockfd of -1 on close

parent 6a75dca0
Branches
Tags
No related merge requests found
......@@ -420,7 +420,8 @@ just_kill_connection:
lws_remove_from_timeout_list(wsi);
/* checking return redundant since we anyway close */
remove_wsi_socket_from_fds(wsi);
if (wsi->sock != LWS_SOCK_INVALID)
remove_wsi_socket_from_fds(wsi);
wsi->state = LWSS_DEAD_SOCKET;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment