From 80395f479f4e4f8c39d11fb8dc57f0fc9910822e Mon Sep 17 00:00:00 2001 From: Andy Green Date: Tue, 18 Aug 2020 10:44:46 +0100 Subject: [PATCH] coverity: 62431: 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 88a191e5a..1f0365b47 100644 --- a/lib/secure-streams/system/auth-api.amazon.com/auth.c +++ b/lib/secure-streams/system/auth-api.amazon.com/auth.c @@ -120,6 +120,9 @@ ss_api_amazon_auth_rx(void *userobj, const uint8_t *buf, size_t len, int flags) int n; ab = lws_system_get_blob(context, LWS_SYSBLOB_TYPE_AUTH, AUTH_IDX_LWA); + /* coverity */ + if (!ab) + return -1; if (buf) { if (flags & LWSSS_FLAG_SOM) {