]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- rpz trigger, fix tcp only action after merge
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 12 Mar 2021 08:18:38 +0000 (09:18 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 12 Mar 2021 08:18:38 +0000 (09:18 +0100)
services/rpz.c

index 843036f34cca0524463ae60051ef387319015335..e9d1226a004c577a79b6975aff7d2b4488947b2f 100644 (file)
@@ -569,7 +569,7 @@ rpz_insert_local_zones_trigger(struct local_zones* lz, uint8_t* dname,
        int dnamelabs = dname_count_labels(dname);
        int newzone = 0;
 
-       if(a == RPZ_TCP_ONLY_ACTION || a == RPZ_INVALID_ACTION) {
+       if(a == RPZ_INVALID_ACTION) {
                char str[255+1];
                if(rrtype == LDNS_RR_TYPE_SOA || rrtype == LDNS_RR_TYPE_NS ||
                        rrtype == LDNS_RR_TYPE_DNAME ||
@@ -940,7 +940,7 @@ rpz_insert_response_ip_trigger(struct rpz* r, uint8_t* dname, size_t dnamelen,
                return 0;
        }
 
-       if(a == RPZ_TCP_ONLY_ACTION || a == RPZ_INVALID_ACTION ||
+       if(a == RPZ_INVALID_ACTION ||
                rpz_action_to_respip_action(a) == respip_invalid) {
                char str[255+1];
                dname_str(dname, str);