]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
Oh yes... with ldns-dane insecure TLSAs are ok when -d is given
authorWillem Toorop <willem@NLnetLabs.nl>
Fri, 19 Oct 2012 12:17:38 +0000 (12:17 +0000)
committerWillem Toorop <willem@NLnetLabs.nl>
Fri, 19 Oct 2012 12:17:38 +0000 (12:17 +0000)
examples/ldns-dane.c

index 6802482086f23aab69e970288ee016e576b791ec..3ae358813296973a67f7dc5628af396f5526fc77 100644 (file)
@@ -600,8 +600,7 @@ dane_query(ldns_rr_list** rrs, ldns_resolver* r,
 
                if (! ldns_pkt_ad(p)) { /* Not secure */
 
-                       ldns_pkt_free(p);
-                       return LDNS_STATUS_DANE_INSECURE;
+                       goto insecure;
                }
                ldns_pkt_free(p);
                return LDNS_STATUS_OK;