]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
print system error, not fr_strerror()
authorAlan T. DeKok <aland@freeradius.org>
Tue, 30 Jan 2024 22:48:12 +0000 (17:48 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 30 Jan 2024 23:14:25 +0000 (18:14 -0500)
we also likely need a simple way to say "please close this socket",
other than just returning "socket failed"

src/listen/control/proto_control_unix.c

index 696c916f65145199e9d81da2c6a42c9421e0084a..0a936b3d2ba4a7796620cec864d73c701d38bf58 100644 (file)
@@ -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;
        }