From f1a50c272921b9b5da8a8fe0c5d55cf82f4b3ebb Mon Sep 17 00:00:00 2001 From: past-due <30942300+past-due@users.noreply.github.com> Date: Tue, 21 May 2024 16:48:34 -0400 Subject: [PATCH] stdinreader.cpp: Fix validity check --- src/stdinreader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stdinreader.cpp b/src/stdinreader.cpp index cdbe6d5cff1..d3ffdd69f93 100644 --- a/src/stdinreader.cpp +++ b/src/stdinreader.cpp @@ -1023,7 +1023,7 @@ int cmdInputThreadFunc(void *) { approve = false; } - if (approve.has_value() || rejectionReason > static_cast(std::numeric_limits::max())) + if (approve.has_value() && rejectionReason < static_cast(std::numeric_limits::max())) { bool approveValue = approve.value(); std::string uniqueJoinIDCopy(uniqueJoinID);