]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Quiet clang analyzer
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 16 Jun 2021 12:41:28 +0000 (07:41 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 16 Jun 2021 12:41:28 +0000 (07:41 -0500)
src/lib/tls/cache.c

index de5d0902332dd9e6ae4e2d76985a9f256ee2217a..bca743a422b43843c0d6bf2d7b6bd2657df46285 100644 (file)
@@ -838,7 +838,7 @@ static int tls_cache_session_ticket_app_data_set(SSL *ssl, void *arg)
         *
         *      We leave OpenSSL 2k to add anything else
         */
-       fr_dbuff_init_talloc(NULL, &dbuff, &tctx, 1024, 1024 * 62);
+       MEM(fr_dbuff_init_talloc(NULL, &dbuff, &tctx, 1024, 1024 * 62));
 
        /*
         *      Encode the session-state contents and
@@ -902,6 +902,9 @@ static SSL_TICKET_RETURN tls_cache_session_ticket_app_data_get(SSL *ssl, SSL_SES
        switch (status) {
        case SSL_TICKET_EMPTY:
        case SSL_TICKET_NO_DECRYPT:
+#ifdef __clang_analyzer__
+       default:
+#endif
                return SSL_TICKET_RETURN_IGNORE_RENEW;  /* Send a new ticket */
 
        case SSL_TICKET_SUCCESS: