From d3d8b3a74c354dd2d646d7d270dc80846f8e29e4 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Tue, 18 Aug 2020 10:49:46 +0100 Subject: [PATCH] coverity: 62370: reassure coverity static blob always exists --- lib/secure-streams/system/auth-api.amazon.com/auth.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/secure-streams/system/auth-api.amazon.com/auth.c b/lib/secure-streams/system/auth-api.amazon.com/auth.c index 3ad8d8d4b..bcb87c1ad 100644 --- a/lib/secure-streams/system/auth-api.amazon.com/auth.c +++ b/lib/secure-streams/system/auth-api.amazon.com/auth.c @@ -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);