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

(-)openbsd-compat/getrrsetbyname.c (-2 / +2 lines)
Lines 288-294 Link Here
288
	rrset->rri_nrdatas = count_dns_rr(response->answer, rrset->rri_rdclass,
288
	rrset->rri_nrdatas = count_dns_rr(response->answer, rrset->rri_rdclass,
289
	    rrset->rri_rdtype);
289
	    rrset->rri_rdtype);
290
	rrset->rri_nsigs = count_dns_rr(response->answer, rrset->rri_rdclass,
290
	rrset->rri_nsigs = count_dns_rr(response->answer, rrset->rri_rdclass,
291
	    T_SIG);
291
	    T_RRSIG);
292
292
293
	/* allocate memory for answers */
293
	/* allocate memory for answers */
294
	rrset->rri_rdatas = calloc(rrset->rri_nrdatas,
294
	rrset->rri_rdatas = calloc(rrset->rri_nrdatas,
Lines 318-324 Link Here
318
			rdata = &rrset->rri_rdatas[index_ans++];
318
			rdata = &rrset->rri_rdatas[index_ans++];
319
319
320
		if (rr->class == rrset->rri_rdclass &&
320
		if (rr->class == rrset->rri_rdclass &&
321
		    rr->type  == T_SIG)
321
		    rr->type  == T_RRSIG)
322
			rdata = &rrset->rri_sigs[index_sig++];
322
			rdata = &rrset->rri_sigs[index_sig++];
323
323
324
		if (rdata) {
324
		if (rdata) {
(-)openbsd-compat/getrrsetbyname.h (-2 / +2 lines)
Lines 62-69 Link Here
62
#define HFIXEDSZ 12
62
#define HFIXEDSZ 12
63
#endif
63
#endif
64
64
65
#ifndef T_SIG
65
#ifndef T_RRSIG
66
#define T_SIG 24
66
#define T_RRSIG 46
67
#endif
67
#endif
68
68
69
/*
69
/*

Return to bug 1317