From c49a1791246d7e6f1c8ea8ab405d2a459e199fc1 Mon Sep 17 00:00:00 2001 From: Brad House Date: Thu, 22 Aug 2024 19:16:38 -0400 Subject: [PATCH] Fix minor warning recently introduced Authored-By: Brad House (@bradh352) --- src/lib/ares__socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ares__socket.c b/src/lib/ares__socket.c index 3605aabf..864419cf 100644 --- a/src/lib/ares__socket.c +++ b/src/lib/ares__socket.c @@ -586,7 +586,7 @@ ares_status_t ares__conn_flush(ares_conn_t *conn) ares__buf_tag_rollback(conn->out_buf); data = ares__buf_peek(conn->out_buf, &data_len); - if (data_len < msg_len + 2) { + if (data_len < (size_t)(msg_len + 2)) { status = ARES_EFORMERR; goto done; }