diff options
Diffstat (limited to 'src/lib/libc/net/getrrsetbyname.c')
-rw-r--r-- | src/lib/libc/net/getrrsetbyname.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libc/net/getrrsetbyname.c b/src/lib/libc/net/getrrsetbyname.c index e679eb5d96..89aa592ba0 100644 --- a/src/lib/libc/net/getrrsetbyname.c +++ b/src/lib/libc/net/getrrsetbyname.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: getrrsetbyname.c,v 1.10 2005/03/30 02:58:28 tedu Exp $ */ | 1 | /* $OpenBSD: getrrsetbyname.c,v 1.11 2007/10/11 18:36:41 jakob Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2001 Jakob Schlyter. All rights reserved. | 4 | * Copyright (c) 2001 Jakob Schlyter. All rights reserved. |
@@ -196,7 +196,7 @@ getrrsetbyname(const char *hostname, unsigned int rdclass, | |||
196 | rrset->rri_nrdatas = count_dns_rr(response->answer, rrset->rri_rdclass, | 196 | rrset->rri_nrdatas = count_dns_rr(response->answer, rrset->rri_rdclass, |
197 | rrset->rri_rdtype); | 197 | rrset->rri_rdtype); |
198 | rrset->rri_nsigs = count_dns_rr(response->answer, rrset->rri_rdclass, | 198 | rrset->rri_nsigs = count_dns_rr(response->answer, rrset->rri_rdclass, |
199 | T_SIG); | 199 | T_RRSIG); |
200 | 200 | ||
201 | /* allocate memory for answers */ | 201 | /* allocate memory for answers */ |
202 | rrset->rri_rdatas = calloc(rrset->rri_nrdatas, | 202 | rrset->rri_rdatas = calloc(rrset->rri_nrdatas, |
@@ -224,7 +224,7 @@ getrrsetbyname(const char *hostname, unsigned int rdclass, | |||
224 | rdata = &rrset->rri_rdatas[index_ans++]; | 224 | rdata = &rrset->rri_rdatas[index_ans++]; |
225 | 225 | ||
226 | if (rr->class == rrset->rri_rdclass && | 226 | if (rr->class == rrset->rri_rdclass && |
227 | rr->type == T_SIG) | 227 | rr->type == T_RRSIG) |
228 | rdata = &rrset->rri_sigs[index_sig++]; | 228 | rdata = &rrset->rri_sigs[index_sig++]; |
229 | 229 | ||
230 | if (rdata) { | 230 | if (rdata) { |