Correctly calculate ttl for AuthoritativeNameServer when update existing records (#9051)

Motivation:

We did not correctly calculate the new ttl as we did forget to add `this.`

Modifications:

Add .this and so correctly calculate the TTL

Result:

Use correct TTL for authoritative nameservers when updating these.
This commit is contained in:
Norman Maurer 2019-04-15 21:41:04 +02:00 committed by GitHub
parent 741bcd485d
commit 4b36a5b08b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1232,7 +1232,7 @@ abstract class DnsResolveContext<T> {
void update(InetSocketAddress address, long ttl) {
assert this.address == null || this.address.isUnresolved();
this.address = address;
this.ttl = min(ttl, ttl);
this.ttl = min(this.ttl, ttl);
}
void update(InetSocketAddress address) {