- Fix empty clause warning in edns pass for padding.

This commit is contained in:
W.C.A. Wijngaards 2021-01-28 09:15:45 +01:00
parent 3a19ceaae6
commit ad8104bb7c
2 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,7 @@
- Fix to use correct type for label count in rpz routine.
- Fix empty clause warning in config_file nsid parse.
- 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
- Merge PR #408 from fobser: Prevent a few more yacc clashes.

View File

@ -166,8 +166,9 @@ int apply_edns_options(struct edns_data* edns_out, struct edns_data* edns_in,
return 0;
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 */
}
else if(!edns_opt_list_append(&edns_out->opt_list, LDNS_EDNS_PADDING
, 0, NULL, region))