summaryrefslogtreecommitdiff
path: root/rr.c
diff options
context:
space:
mode:
authorWouter Wijngaards <wouter@NLnetLabs.nl>2011-09-02 16:04:48 +0200
committerWouter Wijngaards <wouter@NLnetLabs.nl>2011-09-02 16:04:48 +0200
commit0fa6414516d07124076e8b3c2bf9e6094d01be8e (patch)
tree7b6d23439bc00a108ac7011695a0b5444d210e85 /rr.c
parent2f0f09e70ad4bcee914aeedf7b2d78ddc891c8d9 (diff)
downloadldns-0fa6414516d07124076e8b3c2bf9e6094d01be8e.tar.gz
Fix comparison between signed and unsigned.
Diffstat (limited to 'rr.c')
-rw-r--r--rr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rr.c b/rr.c
index 3e24cbde..2caed507 100644
--- a/rr.c
+++ b/rr.c
@@ -434,7 +434,7 @@ ldns_rr_new_frm_str_internal(ldns_rr **newrr, const char *str,
if (c != -1) {
rd_strlen = strlen(rd);
}
- if (c == -1 || cur_hex_data_size + rd_strlen > 2 * hex_data_size) {
+ if (c == -1 || (size_t)cur_hex_data_size + rd_strlen > 2 * (size_t)hex_data_size) {
LDNS_FREE(hex_data_str);
LDNS_FREE(rd);
LDNS_FREE(b64);