Skip to content

Commit

Permalink
Use ROPTIONAL where request may not be set
Browse files Browse the repository at this point in the history
When TLS connections are outbound there is not a dummy request
associated with the socket.
  • Loading branch information
ndptech committed Jan 10, 2025
1 parent 1348178 commit 7b51ba1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/tls_listen.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);

/*
Expand Down

0 comments on commit 7b51ba1

Please sign in to comment.