Parent Directory | Revision Log | Revision Graph
* Tue Jul 11 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.05-9.sme --import patches from openwrt and rename already applied patches --fix security issues [SME: 10374] - 020-dnsroots-update.patch: update list of root DNS servers - 070-dnscache-dpos-tcp-servfail.patch: SERVFAIL rename previous patch dns_transmit-bug.patch - 080-dnscache-cache-negatives.patch: rfc2308 ? - 210-dnscache-strict-forwardonly.patch: rename previous patch dnscache-strict-forwardonly.patch - 240-tinydns-alias-chain-truncation.patch: rename previous patch tinydns-alias-chain-truncation.patch - 270-dnscache-sigpipe-fix.patch: SIGPIPE - 300-bugfix-dnscache-dempsky-poison.patch: CVE-2009-0858 - 310-bugfix-dnscache-merge-outgoing-requests.patch: CVE-2008-4392 - 320-bugfix-dnscache-cache-soa-records.patch: CVE-2008-4392 - 450-dnscache-ghost-domain-CVE-2012-1191.patch: CVE-2012-1191 http://marc.info/?l=djbdns&m=134190748729079&w=2 --bug fixes [SME: 10374] - 060-dnscache-big-udp-packets.patch: accept and handle longer than 512 bytes UDP packets - 230-tinydns-data-semantic-error.patch: handle semantic error to avoid publishing false dns records --fix issue with short ttl cname like akamaid [SME: 8362] - 200-dnscache-cname-handling.patch: rename previous patch dnscache-cname-handling.patch - 330-fix-dnscache-cname-handling.patch: fix dnscache cname for short ttl - 500-cutom-dnscache-maxloop.patch: set max loop to 200 --needed for previous patches to apply cleanly - 030-srv-records-and-axfrget.patch: add SRV record type and axfr-get decompose SRC and PTR records (for 230-*.patch) - 050-tinydns-mmap-leak.patch: report cdb leak - 080-dnscache-cache-negatives.patch: rfc2308 ? - 090-tinydns-one-second.patch: improve tinydns with 8 or more concurent connections (for 240-*.patch) - 120-compiler-temporary-filename.patch: change tmp filename to avoid conflicts (for 230-*.patch)
1 | unnilennium | 1.1 | --- a/tdlookup.c |
2 | +++ b/tdlookup.c | ||
3 | @@ -298,9 +298,17 @@ int respond(char *q,char qtype[2],char i | ||
4 | if (!r) r = cdb_find(&c,key,4); | ||
5 | if (!r) r = cdb_find(&c,key,3); | ||
6 | if (!r) r = cdb_find(&c,key,2); | ||
7 | - if (r == -1) return 0; | ||
8 | + if (r == -1) { | ||
9 | + cdb_free(&c); | ||
10 | + close(fd); | ||
11 | + return 0; | ||
12 | + } | ||
13 | if (r && (cdb_datalen(&c) == 2)) | ||
14 | - if (cdb_read(&c,clientloc,2,cdb_datapos(&c)) == -1) return 0; | ||
15 | + if (cdb_read(&c,clientloc,2,cdb_datapos(&c)) == -1) { | ||
16 | + cdb_free(&c); | ||
17 | + close(fd); | ||
18 | + return 0; | ||
19 | + } | ||
20 | |||
21 | r = doit(q,qtype); | ||
22 |
admin@koozali.org | ViewVC Help |
Powered by ViewVC 1.2.1 |