]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
Fix comparison between signed and unsigned.
authorWouter Wijngaards <wouter@NLnetLabs.nl>
Fri, 2 Sep 2011 14:04:48 +0000 (14:04 +0000)
committerWouter Wijngaards <wouter@NLnetLabs.nl>
Fri, 2 Sep 2011 14:04:48 +0000 (14:04 +0000)
rr.c

diff --git a/rr.c b/rr.c
index 3e24cbdee3df44c6f92de944dc94a3f20a468a1b..2caed5079031d9b915258f70259d55b6f99c05b7 100644 (file)
--- 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);