]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Use ROPTIONAL where request may not be set
authorNick Porter <nick@portercomputing.co.uk>
Fri, 10 Jan 2025 21:35:48 +0000 (21:35 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Fri, 10 Jan 2025 21:35:48 +0000 (21:35 +0000)
When TLS connections are outbound there is not a dummy request
associated with the socket.

src/main/tls_listen.c

index 0837d0f81418c1dcb8fd51f4caf823458cceba10..d22972957934794e60fc03b492a61c97377d8327 100644 (file)
@@ -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);
 
        /*