mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Fix empty clause warning in edns pass for padding.
This commit is contained in:
parent
3a19ceaae6
commit
ad8104bb7c
2 changed files with 3 additions and 1 deletions
|
|
@ -3,6 +3,7 @@
|
||||||
- Fix to use correct type for label count in rpz routine.
|
- Fix to use correct type for label count in rpz routine.
|
||||||
- Fix empty clause warning in config_file nsid parse.
|
- Fix empty clause warning in config_file nsid parse.
|
||||||
- Fix to use correct type for label count in ipdnametoaddr rpz routine.
|
- Fix to use correct type for label count in ipdnametoaddr rpz routine.
|
||||||
|
- Fix empty clause warning in edns pass for padding.
|
||||||
|
|
||||||
26 January 2022: George
|
26 January 2022: George
|
||||||
- Merge PR #408 from fobser: Prevent a few more yacc clashes.
|
- Merge PR #408 from fobser: Prevent a few more yacc clashes.
|
||||||
|
|
|
||||||
|
|
@ -166,8 +166,9 @@ int apply_edns_options(struct edns_data* edns_out, struct edns_data* edns_in,
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if(!cfg->pad_responses || c->type != comm_tcp || !c->ssl
|
if(!cfg->pad_responses || c->type != comm_tcp || !c->ssl
|
||||||
|| !edns_opt_list_find(edns_in->opt_list, LDNS_EDNS_PADDING))
|
|| !edns_opt_list_find(edns_in->opt_list, LDNS_EDNS_PADDING)) {
|
||||||
; /* pass */
|
; /* pass */
|
||||||
|
}
|
||||||
|
|
||||||
else if(!edns_opt_list_append(&edns_out->opt_list, LDNS_EDNS_PADDING
|
else if(!edns_opt_list_append(&edns_out->opt_list, LDNS_EDNS_PADDING
|
||||||
, 0, NULL, region))
|
, 0, NULL, region))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue