mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
[master] corrected typos & unintialized variable
This commit is contained in:
@@ -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];
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user