coverity 157404 get rid of needless NULL check
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
92f96f3edf
commit
b39a151c9c
1 changed files with 1 additions and 4 deletions
|
@ -603,13 +603,10 @@ lws_server_socket_service_ssl(struct lws *wsi, lws_sockfd_type accept_fd)
|
|||
|
||||
if (!LWS_SSL_ENABLED(context))
|
||||
return 0;
|
||||
lwsl_err("%s: mode %d, state %d\n", __func__, wsi->mode, wsi->state);
|
||||
|
||||
switch (wsi->mode) {
|
||||
case LWSCM_SSL_INIT:
|
||||
|
||||
if (!wsi)
|
||||
return 0;
|
||||
|
||||
wsi->ssl = SSL_new(context->ssl_ctx);
|
||||
if (wsi->ssl == NULL) {
|
||||
lwsl_err("SSL_new failed: %s\n",
|
||||
|
|
Loading…
Add table
Reference in a new issue