]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[master] corrected typos & unintialized variable
authorEvan Hunt <each@isc.org>
Mon, 25 Feb 2013 21:23:42 +0000 (13:23 -0800)
committerEvan Hunt <each@isc.org>
Mon, 25 Feb 2013 21:23:42 +0000 (13:23 -0800)
lib/dns/rpz.c
lib/dns/rrl.c

index dd28987c8fb21e79e2ebd6b81ad1451238d343fc..0548e59a487217ea845afe9e0201dc2459c8a115 100644 (file)
@@ -1590,11 +1590,11 @@ dns_rpz_ready(dns_rpz_zones_t *rpzs,
  * Add an IP address to the radix tree or a name to the summary database.
  */
 isc_result_t
-dns_rpz_add(dns_rpz_zones_t *rpzs, dns_rpz_num_t rpz_num,
-           dns_name_t *src_name) {
+dns_rpz_add(dns_rpz_zones_t *rpzs, dns_rpz_num_t rpz_num, dns_name_t *src_name)
+{
        dns_rpz_zone_t *rpz;
        dns_rpz_type_t rpz_type;
-       isc_result_t result;
+       isc_result_t result = ISC_R_FAILURE;
 
        REQUIRE(rpzs != NULL && rpz_num < rpzs->p.num_zones);
        rpz = rpzs->zones[rpz_num];
index d0688aa7afbfa15e45900723e5e94e505c3d7e3f..5185a39b8adc49f8ba31cda53f7888120cc0278c 100644 (file)
@@ -26,6 +26,7 @@
 #include <isc/mem.h>
 #include <isc/net.h>
 #include <isc/netaddr.h>
+#include <isc/print.h>
 
 #include <dns/result.h>
 #include <dns/rcode.h>
@@ -860,7 +861,7 @@ make_log_buf(dns_rrl_t *rrl, dns_rrl_entry_t *e,
                        ADD_LOG_CSTR(&lb, "error response");
                } else {
                        rstr = isc_result_totext(resp_result);
-                       add_log_str(&lb, rstr, strlen(rstr);
+                       add_log_str(&lb, rstr, strlen(rstr));
                        ADD_LOG_CSTR(&lb, " response");
                }
                break;