]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
kill LDNS_RR_MAX which wasn't used and where it was
authorMiek Gieben <miekg@NLnetLabs.nl>
Tue, 14 Feb 2006 12:24:04 +0000 (12:24 +0000)
committerMiek Gieben <miekg@NLnetLabs.nl>
Tue, 14 Feb 2006 12:24:04 +0000 (12:24 +0000)
used it does not make sense

ldns/rr.h
rr.c

index 6e17a9e866e4cd64951cf663b0ee651d012ad7ac..c0573c5ebed5cc393504097ac67bb78cd26344ae 100644 (file)
--- a/ldns/rr.h
+++ b/ldns/rr.h
@@ -21,8 +21,6 @@
 #define LDNS_MAX_DOMAINLEN    255
 /** Maximum number of pointers in 1 dname */
 #define LDNS_MAX_POINTERS      65535
-/** Maximum number of rr's in a rr_list */
-#define LDNS_MAX_RR            65535
 /** The bytes TTL, CLASS and length use up in an rr */
 #define LDNS_RR_OVERHEAD       10
 
diff --git a/rr.c b/rr.c
index 9a27fb77af5d47ffeb56bee5b2b2a3688bf55141..a17ab92a1e883167622bf12516426275f4975c92 100644 (file)
--- a/rr.c
+++ b/rr.c
@@ -714,21 +714,18 @@ ldns_rr_list_cat(ldns_rr_list *left, ldns_rr_list *right)
 
        if (left) {
                l_rr_count = ldns_rr_list_rr_count(left);
+               printf("left %d\n", l_rr_count);
        } else {
                return false;
        }
 
        if (right) {
                r_rr_count = ldns_rr_list_rr_count(right);
+               printf("right %d\n", r_rr_count);
        } else {
                r_rr_count = 0;
        }
        
-       if (l_rr_count + r_rr_count > LDNS_MAX_RR ) {
-               /* overflow error */
-               return false;
-       }
-
        /* push right to left */
        for(i = 0; i < r_rr_count; i++) {
                ldns_rr_list_push_rr(left, ldns_rr_list_rr(right, i));
@@ -758,11 +755,6 @@ ldns_rr_list_cat_clone(ldns_rr_list *left, ldns_rr_list *right)
                r_rr_count = 0;
        }
        
-       if (l_rr_count + r_rr_count > LDNS_MAX_RR ) {
-               /* overflow error */
-               return NULL;
-       }
-
        cat = ldns_rr_list_new();
 
        if (!cat) {