From: Miek Gieben Date: Thu, 8 Jun 2006 13:49:06 +0000 (+0000) Subject: kill ugly warning X-Git-Tag: release-1.1.0~94 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=981f0dc4ea7768661bafdee7814d04c5de6821dd;p=thirdparty%2Fldns.git kill ugly warning --- diff --git a/drill/securetrace.c b/drill/securetrace.c index 1e3e401f..55dc829b 100644 --- a/drill/securetrace.c +++ b/drill/securetrace.c @@ -224,8 +224,9 @@ do_secure_trace(ldns_resolver *local_res, ldns_rdf *name, ldns_rr_type t, /* lame ass servers put them in the auth section */ new_nss = ldns_pkt_rr_list_by_type(local_p, LDNS_RR_TYPE_NS, LDNS_SECTION_AUTHORITY); + } else { + ldns_rr_list_print(stdout, new_nss); } - ldns_rr_list_print(stdout, new_nss); for(j = 0; j < ldns_rr_list_rr_count(new_nss); j++) { pop = ldns_rr_rdf(ldns_rr_list_rr(new_nss, j), 0);