View | Details | Raw Unified | Return to bug 211303
Collapse All | Expand All

(-)query.c (+5 lines)
Lines 704-714 add_rrset(struct query *query, Link Here
704
	result = answer_add_rrset(answer, section, owner, rrset);
704
	result = answer_add_rrset(answer, section, owner, rrset);
705
	switch (rrset_rrtype(rrset)) {
705
	switch (rrset_rrtype(rrset)) {
706
	case TYPE_NS:
706
	case TYPE_NS:
707
#if defined(INET6)
707
		/* if query over IPv6, swap A and AAAA; put AAAA first */
708
		/* if query over IPv6, swap A and AAAA; put AAAA first */
708
		add_additional_rrsets(query, answer, rrset, 0, 1,
709
		add_additional_rrsets(query, answer, rrset, 0, 1,
709
			(query->addr.ss_family == AF_INET6)?
710
			(query->addr.ss_family == AF_INET6)?
710
			swap_aaaa_additional_rr_types:
711
			swap_aaaa_additional_rr_types:
711
			default_additional_rr_types);
712
			default_additional_rr_types);
713
#else
714
		add_additional_rrsets(query, answer, rrset, 0, 1,
715
				      default_additional_rr_types);
716
#endif
712
		break;
717
		break;
713
	case TYPE_MB:
718
	case TYPE_MB:
714
		add_additional_rrsets(query, answer, rrset, 0, 0,
719
		add_additional_rrsets(query, answer, rrset, 0, 0,

Return to bug 211303