mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Fix compile warnings in rpz initialization.
This commit is contained in:
parent
67d541d690
commit
b2894e23a9
3 changed files with 5 additions and 4 deletions
|
|
@ -576,7 +576,7 @@ apply_respip_action(struct worker* worker, const struct query_info* qinfo,
|
||||||
struct comm_reply* repinfo, struct ub_packed_rrset_key** alias_rrset,
|
struct comm_reply* repinfo, struct ub_packed_rrset_key** alias_rrset,
|
||||||
struct reply_info** encode_repp, struct auth_zones* az)
|
struct reply_info** encode_repp, struct auth_zones* az)
|
||||||
{
|
{
|
||||||
struct respip_action_info actinfo = {0};
|
struct respip_action_info actinfo = {0, 0, 0, 0, NULL, 0, NULL};
|
||||||
actinfo.action = respip_none;
|
actinfo.action = respip_none;
|
||||||
|
|
||||||
if(qinfo->qtype != LDNS_RR_TYPE_A &&
|
if(qinfo->qtype != LDNS_RR_TYPE_A &&
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
- Fix compile warning for type cast in http2_submit_dns_response.
|
- Fix compile warning for type cast in http2_submit_dns_response.
|
||||||
- Fix when use free buffer to initialize rbtree for stream reuse.
|
- Fix when use free buffer to initialize rbtree for stream reuse.
|
||||||
- Fix compile warnings for windows.
|
- Fix compile warnings for windows.
|
||||||
|
- Fix compile warnings in rpz initialization.
|
||||||
|
|
||||||
26 November 2020: Wouter
|
26 November 2020: Wouter
|
||||||
- Fix to omit UDP receive errors from log, if verbosity low.
|
- Fix to omit UDP receive errors from log, if verbosity low.
|
||||||
|
|
|
||||||
|
|
@ -914,7 +914,7 @@ respip_rewrite_reply(const struct query_info* qinfo,
|
||||||
int ret = 1;
|
int ret = 1;
|
||||||
struct ub_packed_rrset_key* redirect_rrset = NULL;
|
struct ub_packed_rrset_key* redirect_rrset = NULL;
|
||||||
struct rpz* r;
|
struct rpz* r;
|
||||||
struct auth_zone* a;
|
struct auth_zone* a = NULL;
|
||||||
struct ub_packed_rrset_key* data = NULL;
|
struct ub_packed_rrset_key* data = NULL;
|
||||||
int rpz_used = 0;
|
int rpz_used = 0;
|
||||||
int rpz_log = 0;
|
int rpz_log = 0;
|
||||||
|
|
@ -1109,7 +1109,7 @@ respip_operate(struct module_qstate* qstate, enum module_ev event, int id,
|
||||||
qstate->return_msg && qstate->return_msg->rep) {
|
qstate->return_msg && qstate->return_msg->rep) {
|
||||||
struct reply_info* new_rep = qstate->return_msg->rep;
|
struct reply_info* new_rep = qstate->return_msg->rep;
|
||||||
struct ub_packed_rrset_key* alias_rrset = NULL;
|
struct ub_packed_rrset_key* alias_rrset = NULL;
|
||||||
struct respip_action_info actinfo = {0};
|
struct respip_action_info actinfo = {0, 0, 0, 0, NULL, 0, NULL};
|
||||||
actinfo.action = respip_none;
|
actinfo.action = respip_none;
|
||||||
|
|
||||||
if(!respip_rewrite_reply(&qstate->qinfo,
|
if(!respip_rewrite_reply(&qstate->qinfo,
|
||||||
|
|
@ -1170,7 +1170,7 @@ respip_merge_cname(struct reply_info* base_rep,
|
||||||
struct ub_packed_rrset_key* alias_rrset = NULL; /* ditto */
|
struct ub_packed_rrset_key* alias_rrset = NULL; /* ditto */
|
||||||
uint16_t tgt_rcode;
|
uint16_t tgt_rcode;
|
||||||
size_t i, j;
|
size_t i, j;
|
||||||
struct respip_action_info actinfo = {0};
|
struct respip_action_info actinfo = {0, 0, 0, 0, NULL, 0, NULL};
|
||||||
actinfo.action = respip_none;
|
actinfo.action = respip_none;
|
||||||
|
|
||||||
/* If the query for the CNAME target would result in an unusual rcode,
|
/* If the query for the CNAME target would result in an unusual rcode,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue