From: Nick Porter Date: Thu, 23 Jan 2025 10:02:54 +0000 (+0000) Subject: Pacify clang scan X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=926e8794aaf48c54e0540f3218b884a47cd22c7e;p=thirdparty%2Ffreeradius-server.git Pacify clang scan --- diff --git a/src/main/tls.c b/src/main/tls.c index bcc5518803..5975e2a7dd 100644 --- a/src/main/tls.c +++ b/src/main/tls.c @@ -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 */