mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
coverity: 62370: reassure coverity static blob always exists
This commit is contained in:
parent
03ab5b5247
commit
d3d8b3a74c
1 changed files with 3 additions and 0 deletions
|
@ -175,6 +175,9 @@ ss_api_amazon_auth_tx(void *userobj, lws_ss_tx_ordinal_t ord, uint8_t *buf,
|
|||
*/
|
||||
|
||||
ab = lws_system_get_blob(context, LWS_SYSBLOB_TYPE_AUTH, AUTH_IDX_ROOT);
|
||||
if (!ab)
|
||||
return LWSSSSRET_DESTROY_ME;
|
||||
|
||||
total = lws_system_blob_get_size(ab);
|
||||
|
||||
n = lws_system_blob_get(ab, buf, len, m->pos);
|
||||
|
|
Loading…
Add table
Reference in a new issue