mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00
coverity 157402 explicitly disallow handling invalid sockfd
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
6f4e2d297b
commit
e6dbaa236a
1 changed files with 2 additions and 1 deletions
|
@ -612,7 +612,8 @@ lws_server_socket_service_ssl(struct lws *wsi, lws_sockfd_type accept_fd)
|
|||
lwsl_err("SSL_new failed: %s\n",
|
||||
ERR_error_string(SSL_get_error(wsi->ssl, 0), NULL));
|
||||
lws_decode_ssl_error();
|
||||
compatible_close(accept_fd);
|
||||
if (accept_fd != LWS_SOCK_INVALID)
|
||||
compatible_close(accept_fd);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue