diff options
author | jakob <> | 2007-10-11 18:36:41 +0000 |
---|---|---|
committer | jakob <> | 2007-10-11 18:36:41 +0000 |
commit | 115b8b7d4830ff4c5f4180f7d64cd57307f5f909 (patch) | |
tree | 462aa016167755635ce692cc1a4ed1c5f78e35d2 /src/lib/libc/net/getrrsetbyname.c | |
parent | bd1e03a2e6753a3548e4e72197b9ca31041d113a (diff) | |
download | openbsd-115b8b7d4830ff4c5f4180f7d64cd57307f5f909.tar.gz openbsd-115b8b7d4830ff4c5f4180f7d64cd57307f5f909.tar.bz2 openbsd-115b8b7d4830ff4c5f4180f7d64cd57307f5f909.zip |
use RRSIG instead of SIG for DNSSEC. ok djm@
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) { |