From: Alan T. DeKok Date: Mon, 16 Jun 2025 18:01:01 +0000 (-0400) Subject: set error only if it failed X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00a662ad06b273d17ffb01dd498ad37fbc1742b1;p=thirdparty%2Ffreeradius-server.git set error only if it failed --- diff --git a/src/lib/bio/fd_open.c b/src/lib/bio/fd_open.c index cff635176fe..2db40b82826 100644 --- a/src/lib/bio/fd_open.c +++ b/src/lib/bio/fd_open.c @@ -696,7 +696,7 @@ static int fr_bio_fd_socket_bind_to_device(fr_bio_fd_t *my, UNUSED fr_bio_fd_con break; } - fr_strerror_printf("Failed setting IP_BOUND_IF: %s", fr_syserror(errno)); + if (rcode < 0) fr_strerror_printf("Failed setting IP_BOUND_IF: %s", fr_syserror(errno)); return rcode; } #else