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

coverity: 62319: coverity thinks we must always check blob size

This commit is contained in:
Andy Green 2020-08-18 10:51:57 +01:00
parent d3d8b3a74c
commit 260bd38d56

View file

@ -220,6 +220,8 @@ ss_api_amazon_auth_state(void *userobj, void *sh, lws_ss_constate_t state,
/* fallthru */
case LWSSSCS_CONNECTING:
s = lws_system_blob_get_size(ab);
if (!s)
lwsl_debug("%s: no auth blob\n", __func__);
lws_ss_request_tx_len(m->ss, (unsigned long)s);
m->pos = 0;
break;