]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[master] minor code cleanup in rrl.c:expand_entries()
authorEvan Hunt <each@isc.org>
Fri, 26 Apr 2013 17:59:50 +0000 (10:59 -0700)
committerEvan Hunt <each@isc.org>
Fri, 26 Apr 2013 17:59:50 +0000 (10:59 -0700)
 from RT #33137

lib/dns/rrl.c

index 3a6abfa462116a2f87b71f8877fa40ae9f8af506..6419dfeadf70acd252a108e3f2296c6215bdca25 100644 (file)
@@ -203,12 +203,12 @@ expand_entries(dns_rrl_t *rrl, int new) {
        double rate;
        int i;
 
-       if (rrl->num_entries+new >= rrl->max_entries && rrl->max_entries != 0) {
-               if (rrl->num_entries >= rrl->max_entries)
-                       return (ISC_R_SUCCESS);
+       if (rrl->num_entries + new >= rrl->max_entries &&
+           rrl->max_entries != 0)
+       {
                new = rrl->max_entries - rrl->num_entries;
                if (new <= 0)
-                       return (ISC_R_NOMEMORY);
+                       return (ISC_R_SUCCESS);
        }
 
        /*