From 61303f5653b2d9af3bbe5c1c3279674b6cd3488e Mon Sep 17 00:00:00 2001 From: Eugenio Collado Date: Thu, 26 Dec 2024 13:04:21 +0100 Subject: [PATCH] Fix corner case infinite loop Signed-off-by: Eugenio Collado --- src/cpp/rtps/transport/asio_helpers.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpp/rtps/transport/asio_helpers.hpp b/src/cpp/rtps/transport/asio_helpers.hpp index eb08aaeffdb..b57d23d36ad 100644 --- a/src/cpp/rtps/transport/asio_helpers.hpp +++ b/src/cpp/rtps/transport/asio_helpers.hpp @@ -51,7 +51,7 @@ struct asio_helpers asio::error_code ec; final_buffer_value = initial_buffer_value; - while (final_buffer_value >= minimum_buffer_value) + while (final_buffer_value > minimum_buffer_value) { int32_t value_to_set = static_cast(final_buffer_value); socket.set_option(BufferOptionType(value_to_set), ec);