diff options
author | Tom Gundersen <teg@jklm.no> | 2016-01-01 11:19:19 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2016-01-01 11:19:19 +0100 |
commit | 5809f340fd7e5e6c76e229059c50d92e1f57e8d8 (patch) | |
tree | 067a8be93fd921d0e3d6ef9138569f267b787204 /src/resolve/resolved-dns-server.c | |
parent | b485d2003efe10e88dc806527954154de636ccb2 (diff) | |
parent | e9bb4ec69dafb2f39551265e6b900bb18a3169bd (diff) |
Merge pull request #2241 from poettering/dnssec9
Ninth DNSSEC patch set
Diffstat (limited to 'src/resolve/resolved-dns-server.c')
-rw-r--r-- | src/resolve/resolved-dns-server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-server.c b/src/resolve/resolved-dns-server.c index a57385d47d..fbd1c27c14 100644 --- a/src/resolve/resolved-dns-server.c +++ b/src/resolve/resolved-dns-server.c @@ -253,7 +253,7 @@ void dns_server_packet_received(DnsServer *s, DnsServerFeatureLevel level, usec_ if (s->max_rtt < rtt) { s->max_rtt = rtt; - s->resend_timeout = MIN(MAX(DNS_TIMEOUT_MIN_USEC, s->max_rtt * 2), DNS_TIMEOUT_MAX_USEC); + s->resend_timeout = CLAMP(s->max_rtt * 2, DNS_TIMEOUT_MIN_USEC, DNS_TIMEOUT_MAX_USEC); } } |