]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Pacify clang scan
authorNick Porter <nick@portercomputing.co.uk>
Thu, 23 Jan 2025 10:02:54 +0000 (10:02 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Thu, 23 Jan 2025 10:02:54 +0000 (10:02 +0000)
src/main/tls.c

index bcc5518803d0bcbce4422d64ed519336d6058fd3..5975e2a7ddb5d0b28a58be2b56c2ed05c7905f35 100644 (file)
@@ -2685,6 +2685,11 @@ static ocsp_status_t ocsp_check(REQUEST *request, X509_STORE *store, X509 *issue
                }
        }
 
+       if (!host) {
+               RWDEBUG("ocsp: No host found.  Not doing OCSP");
+               goto skipped;
+       }
+
        RDEBUG2("ocsp: Using responder URL \"http://%s:%s%s\"", host, port, path);
 
        /* Check host and port length are sane, then create Host: HTTP header */