1
0
mirror of https://github.com/danog/dns.git synced 2025-01-22 21:41:11 +01:00

Fix cache TTL

This commit is contained in:
Niklas Keller 2017-06-14 08:08:34 +02:00
parent 9f2820bb63
commit 4ef49e8544

View File

@ -667,9 +667,9 @@ REGEX;
$promisor->fail($error);
} else {
foreach ($result as $type => $records) {
$minttl = INF;
$minttl = \PHP_INT_MAX;
foreach ($records as list( , , $ttl)) {
if ($ttl && $minttl > $ttl) {
if ($ttl < $minttl) {
$minttl = $ttl;
}
}