From: Nick Porter Date: Fri, 10 Jan 2025 21:35:48 +0000 (+0000) Subject: Use ROPTIONAL where request may not be set X-Git-Tag: release_3_2_7~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b51ba10a9b401c1f54313466fb0a02e2cb54ef8;p=thirdparty%2Ffreeradius-server.git Use ROPTIONAL where request may not be set When TLS connections are outbound there is not a dummy request associated with the socket. --- diff --git a/src/main/tls_listen.c b/src/main/tls_listen.c index 0837d0f814..d229729579 100644 --- a/src/main/tls_listen.c +++ b/src/main/tls_listen.c @@ -51,6 +51,8 @@ USES_APPLE_DEPRECATED_API /* OpenSSL API has been deprecated by Apple */ #define PTHREAD_MUTEX_UNLOCK(_x) #endif +#define LOG_PREFIX "TLS" + static void dump_hex(char const *msg, uint8_t const *data, size_t data_len) { size_t i; @@ -82,7 +84,7 @@ static void tls_socket_close(rad_listen_t *listener) /* * Tell the event handler that an FD has disappeared. */ - RDEBUG3("(TLS) Closing connection"); + ROPTIONAL(RDEBUG3, DEBUG3, "(TLS) Closing connection"); radius_update_listener(listener); /*