summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2017-08-16 06:15:35 +0000
committerLorenzo Colitti <lorenzo@google.com>2017-08-16 06:15:35 +0000
commitcd33bb4337fc4839b23365fdb4f5f8a3f29b35ff (patch)
tree0106513892e34b5c5c41f94953a93335ad5c45c5
parent72d580fc9138ed52bab8ca1950d704da6929f175 (diff)
parent48d106d6bf4b61c372d48ae6f8c4257d4a1baf1b (diff)
downloaddnsmasq-cd33bb4337fc4839b23365fdb4f5f8a3f29b35ff.tar.gz
[automerger] Add extra (size_t) cast to avoid compiler warning. am: 1387a89b14 am: bc2ee79a6e am: 53787550a7 am: 95129dbdb6 am: 10d8009592 am: e04fe5b516 am: aca21c9df5 am: db203bf112 am: 14cd06a72d am: 2e47278b09 am: 48d106d6bf
Change-Id: I6a01571b7066f3fa5be18ad5d4b4dd7e18fe29f6
-rwxr-xr-xsrc/rfc1035.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rfc1035.c b/src/rfc1035.c
index 265e4df..e440e8a 100755
--- a/src/rfc1035.c
+++ b/src/rfc1035.c
@@ -1144,7 +1144,7 @@ size_t answer_request(HEADER *header, char *limit, size_t qlen,
struct mx_srv_record *rec;
// Make sure we do not underflow here too.
- if (qlen > (limit - ((char *)header))) return 0;
+ if (qlen > (size_t)(limit - ((char *)header))) return 0;
/* If there is an RFC2671 pseudoheader then it will be overwritten by
partial replies, so we have to do a dry run to see if we can answer