]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Accomodate coverity in tls_cache_session_ticket_app_data_get() (CID #1503904) (#4604)
authorJames Jones <jejones3141@gmail.com>
Sat, 9 Jul 2022 00:31:06 +0000 (19:31 -0500)
committerGitHub <noreply@github.com>
Sat, 9 Jul 2022 00:31:06 +0000 (07:31 +0700)
Make the default appear for coverity as well as for clang static
analysis, for the same reason: otherwise, an unexpected status
could pass a NULL request to tls_cache_app_data_get().

src/lib/tls/cache.c

index 20f87c7177c19dd383597e33dc7aad78c4185902..5e17dd92d1ad678cec77da84bbf9a2ccca4ca3d0 100644 (file)
@@ -1268,7 +1268,7 @@ static SSL_TICKET_RETURN tls_cache_session_ticket_app_data_get(SSL *ssl, SSL_SES
        case SSL_TICKET_FATAL_ERR_MALLOC:
        case SSL_TICKET_FATAL_ERR_OTHER:
        case SSL_TICKET_NONE:
-#ifdef __clang_analyzer__
+#if defined(__clang_analyzer__) || defined(__COVERITY__)
        default:
 #endif
                return SSL_TICKET_RETURN_IGNORE_RENEW;  /* Send a new ticket */