mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
coverity: 62313: static blob cant be null but coverity needs convincing
This commit is contained in:
parent
398a9e1bad
commit
6b09e5f8f7
1 changed files with 10 additions and 7 deletions
|
@ -113,6 +113,9 @@ lws_state_notify_protocol_init(struct lws_state_manager *mgr,
|
|||
{
|
||||
struct lws_context *context = lws_container_of(mgr, struct lws_context,
|
||||
mgr_system);
|
||||
#if defined(LWS_WITH_SECURE_STREAMS) && defined(LWS_WITH_SECURE_STREAMS_SYS_AUTH_API_AMAZON_COM)
|
||||
lws_system_blob_t *ab0, *ab1;
|
||||
#endif
|
||||
int n;
|
||||
|
||||
/*
|
||||
|
@ -150,14 +153,14 @@ lws_state_notify_protocol_init(struct lws_state_manager *mgr,
|
|||
*
|
||||
* If root token is empty, skip too.
|
||||
*/
|
||||
|
||||
ab0 = lws_system_get_blob(context, LWS_SYSBLOB_TYPE_AUTH, 0);
|
||||
ab1 = lws_system_get_blob(context, LWS_SYSBLOB_TYPE_AUTH, 1);
|
||||
|
||||
if (target == LWS_SYSTATE_AUTH1 &&
|
||||
context->pss_policies &&
|
||||
!lws_system_blob_get_size(lws_system_get_blob(context,
|
||||
LWS_SYSBLOB_TYPE_AUTH,
|
||||
0)) &&
|
||||
lws_system_blob_get_size(lws_system_get_blob(context,
|
||||
LWS_SYSBLOB_TYPE_AUTH,
|
||||
1))) {
|
||||
context->pss_policies && ab0 && ab1 &&
|
||||
!lws_system_blob_get_size(ab0) &&
|
||||
lws_system_blob_get_size(ab1)) {
|
||||
lwsl_info("%s: AUTH1 state triggering api.amazon.com auth\n", __func__);
|
||||
/*
|
||||
* Start trying to acquire it if it's not already in progress
|
||||
|
|
Loading…
Add table
Reference in a new issue