]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
print an error, too
authorAlan T. DeKok <aland@freeradius.org>
Thu, 9 Sep 2021 20:54:42 +0000 (16:54 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 9 Sep 2021 20:54:42 +0000 (16:54 -0400)
src/lib/util/udp_queue.c

index da2fdd3194b187a628f32436dab2829b7587ebc0..419398f4d8ddc5bfe9b61aa7fded1406d5589481 100644 (file)
@@ -112,7 +112,10 @@ fr_udp_queue_t *fr_udp_queue_alloc(TALLOC_CTX *ctx, fr_udp_queue_config_t const
        if (config->port != 0) {
                int on = 1;
 
-               if (setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &on, sizeof(on)) < 0) goto error;
+               if (setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &on, sizeof(on)) < 0) {
+                       fr_strerror_printf("SO_REUSEPORT said %s", fr_syserror(errno));
+                       goto error;
+               }
        }
 
        /*