summaryrefslogtreecommitdiffstats
path: root/src/resolve/resolved-dns-transaction.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-06-13 06:13:34 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-06-13 06:13:40 +0200
commiteab39da1fa1454531f2bd655d46cc7fdc851b9df (patch)
treee2f33ae6d555c4d00b0ea745f6a20cdb5b226149 /src/resolve/resolved-dns-transaction.c
parentresolve: fix log message (diff)
downloadsystemd-eab39da1fa1454531f2bd655d46cc7fdc851b9df.tar.xz
systemd-eab39da1fa1454531f2bd655d46cc7fdc851b9df.zip
resolve: correctly count TCP transaction failures
Fixes #9281.
Diffstat (limited to '')
-rw-r--r--src/resolve/resolved-dns-transaction.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-transaction.c b/src/resolve/resolved-dns-transaction.c
index 7a512a55f2..6144b03165 100644
--- a/src/resolve/resolved-dns-transaction.c
+++ b/src/resolve/resolved-dns-transaction.c
@@ -536,7 +536,7 @@ static int on_stream_complete(DnsStream *s, int error) {
if (s->transactions) {
t = s->transactions;
assert_se(sd_event_now(t->scope->manager->event, clock_boottime_or_monotonic(), &usec) >= 0);
- dns_server_packet_lost(t->server, IPPROTO_UDP, t->current_feature_level, usec - t->start_usec);
+ dns_server_packet_lost(t->server, IPPROTO_TCP, t->current_feature_level, usec - t->start_usec);
}
}