summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2012-06-28 15:21:32 +1000
committerDarren Tucker <dtucker@zip.com.au>2012-06-28 15:21:32 +1000
commit8908da7dce7711af59c7f43b122f73293dca27ab (patch)
treeb8e61de67b72d38b6f860fb535d98614a7e84d18
parent62dcd63f5ed39798b0201cf64223960ded766914 (diff)
- (dtucker) [openbsd-compat/getrrsetbyname-ldns.c] bz #2022: prevent null
pointer deref in the client when built with LDNS and using DNSSEC with a CNAME. Patch from gregdlg+mr at hochet info.
-rw-r--r--ChangeLog5
-rw-r--r--openbsd-compat/getrrsetbyname-ldns.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 499d3d2a1..1de0165be 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
120120628
2 - (dtucker) [openbsd-compat/getrrsetbyname-ldns.c] bz #2022: prevent null
3 pointer deref in the client when built with LDNS and using DNSSEC with a
4 CNAME. Patch from gregdlg+mr at hochet info.
5
120120622 620120622
2 - (dtucker) [contrib/cygwin/ssh-host-config] Ensure that user sshd runs as 7 - (dtucker) [contrib/cygwin/ssh-host-config] Ensure that user sshd runs as
3 can logon as a service. Patch from vinschen at redhat com. 8 can logon as a service. Patch from vinschen at redhat com.
diff --git a/openbsd-compat/getrrsetbyname-ldns.c b/openbsd-compat/getrrsetbyname-ldns.c
index 8ce5678c9..19666346b 100644
--- a/openbsd-compat/getrrsetbyname-ldns.c
+++ b/openbsd-compat/getrrsetbyname-ldns.c
@@ -205,7 +205,8 @@ getrrsetbyname(const char *hostname, unsigned int rdclass,
205 } 205 }
206 206
207 if (rr->_rr_class == rrset->rri_rdclass && 207 if (rr->_rr_class == rrset->rri_rdclass &&
208 rr->_rr_type == LDNS_RR_TYPE_RRSIG) { 208 rr->_rr_type == LDNS_RR_TYPE_RRSIG &&
209 rrset->rri_sigs) {
209 rdata = &rrset->rri_sigs[index_sig++]; 210 rdata = &rrset->rri_sigs[index_sig++];
210 } 211 }
211 212