From: Alan T. DeKok Date: Tue, 30 Jan 2024 22:48:12 +0000 (-0500) Subject: print system error, not fr_strerror() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a5e992ac04edffec92ae1d3408e71dcb0ed7896;p=thirdparty%2Ffreeradius-server.git print system error, not fr_strerror() we also likely need a simple way to say "please close this socket", other than just returning "socket failed" --- diff --git a/src/listen/control/proto_control_unix.c b/src/listen/control/proto_control_unix.c index 696c916f651..0a936b3d2ba 100644 --- a/src/listen/control/proto_control_unix.c +++ b/src/listen/control/proto_control_unix.c @@ -300,7 +300,7 @@ static ssize_t mod_read(fr_listen_t *li, void **packet_ctx, fr_time_t *recv_time */ data_size = fr_conduit_read_async(thread->sockfd, &conduit, buffer, buffer_len, leftover, &want_more); if (data_size < 0) { - DEBUG2("proto_control_unix got read error %zd: %s", data_size, fr_strerror()); + DEBUG2("proto_control_unix got read error %zd: %s", data_size, fr_syserror(errno)); return data_size; }