[exim-dev] [Bug 1395] ignore_cache option for ACL dnslists

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: admin
Data:  
Para: exim-dev
Temas antigos: [exim-dev] [Bug 1395] New: ignore_cache option for ACL dnslists
Asunto: [exim-dev] [Bug 1395] ignore_cache option for ACL dnslists
https://bugs.exim.org/show_bug.cgi?id=1395

--- Comment #6 from Git Commit <git@???> ---
Git commit:
http://git.exim.org/exim.git/commitdiff/e162fc9757d4b8cb41aca74214e968622d6c3dee

commit e162fc9757d4b8cb41aca74214e968622d6c3dee
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Sun Sep 20 21:47:10 2015 +0100
Commit:     Jeremy Harris <jgh146exb@???>
CommitDate: Sun Sep 20 21:47:10 2015 +0100


    DNS: avoid overflow in cache TTL for negative entries.  Bug 1395
---
 src/src/verify.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)


diff --git a/src/src/verify.c b/src/src/verify.c
index cb88f28..435570b 100644
--- a/src/src/verify.c
+++ b/src/src/verify.c
@@ -3600,7 +3600,7 @@ cache the result in permanent memory. */

else
{
- uint ttl = UINT_MAX;
+ uint ttl = 3600;

store_pool = POOL_PERM;

@@ -3633,7 +3633,10 @@ else

Quite apart from one A6 RR generating multiple addresses, there are DNS
lists that return more than one A record, so we must handle multiple
- addresses generated in that way as well. */
+ addresses generated in that way as well.
+
+ Mark the cache entry with the "now" plus the minimum of the address TTLs,
+ or some suitably far-future time if none were found. */

   if (cb->rc == DNS_SUCCEED)
     {


--
You are receiving this mail because:
You are on the CC list for the bug.