summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Antonuk <alan.antonuk@gmail.com>2021-04-29 04:22:23 +0000
committerGitHub <noreply@github.com>2021-04-29 04:22:23 +0000
commit85e4c6d6f9f7cb068507a4efe6d09e5d6f9ae14a (patch)
tree43480c120f13b04ae475b8e460ab7b366c785fd1
parentf11ad124e7548e47770a065b814207745c368dd4 (diff)
downloadrabbitmq-c-85e4c6d6f9f7cb068507a4efe6d09e5d6f9ae14a.tar.gz
lib: fix clang-tidy finding in simple_rpc_inner
While this wasn't causing any errors, it did have the potential to cause a bug if the error codes ever were positive. Signed-off-by: GitHub <noreply@github.com>
-rw-r--r--librabbitmq/amqp_socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/librabbitmq/amqp_socket.c b/librabbitmq/amqp_socket.c
index fdff1d2..cde1b8f 100644
--- a/librabbitmq/amqp_socket.c
+++ b/librabbitmq/amqp_socket.c
@@ -1056,7 +1056,7 @@ static amqp_rpc_reply_t simple_rpc_inner(
retry:
status = wait_frame_inner(state, &frame, deadline);
- if (status < 0) {
+ if (status != AMQP_STATUS_OK) {
if (status == AMQP_STATUS_TIMEOUT) {
amqp_socket_close(state->socket, AMQP_SC_FORCE);
}