From: Wouter Wijngaards Date: Fri, 2 Sep 2011 14:04:48 +0000 (+0000) Subject: Fix comparison between signed and unsigned. X-Git-Tag: release-1.6.11rc1~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fa6414516d07124076e8b3c2bf9e6094d01be8e;p=thirdparty%2Fldns.git Fix comparison between signed and unsigned. --- 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);