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

COVA10821: check lws_change_pollfd

This commit is contained in:
Andy Green 2019-07-13 11:32:34 -07:00
parent 049c898aad
commit 93df14454c

View file

@ -1164,7 +1164,8 @@ lws_http_client_read(struct lws *wsi, char **buf, int *len)
// lwsl_notice("%s: rlen %d\n", __func__, rlen);
/* allow the source to signal he has data again next time */
lws_change_pollfd(wsi, 0, LWS_POLLIN);
if (lws_change_pollfd(wsi, 0, LWS_POLLIN))
return -1;
if (rlen == LWS_SSL_CAPABLE_ERROR) {
lwsl_debug("%s: SSL capable error\n", __func__);