]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix empty clause warning in edns pass for padding.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 28 Jan 2021 08:15:45 +0000 (09:15 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 28 Jan 2021 08:15:45 +0000 (09:15 +0100)
doc/Changelog
util/edns.c

index 83e617c9a816ecb05f226bf31507f40cfa1ffca9..66b46d2306431f939f963473032c8f52f9a81c68 100644 (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.
index 5d2121636f82697b2babbaac907454010c6f0002..84308449c7f3efa68dd346823460875a60f11af9 100644 (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))