summaryrefslogtreecommitdiff
path: root/src/resolve
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-12-26 14:37:07 +0100
committerLennart Poettering <lennart@poettering.net>2015-12-27 01:41:39 +0100
commit2a6658ef553db3ee62528adbeccfb9f40cbe7173 (patch)
treebffc47d6a3fe73eae7c43f3862af36eecb250c67 /src/resolve
parentcbe4216dd1b76f26460c553aefeeebf29bce221c (diff)
resolved: never proceed processing truncated packets
Make sure we don't end up processing packets that are truncated. Instead, actually let the TCP connection do its thing.
Diffstat (limited to 'src/resolve')
-rw-r--r--src/resolve/resolved-dns-transaction.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resolve/resolved-dns-transaction.c b/src/resolve/resolved-dns-transaction.c
index 2eb1675c5b..5eb569d49d 100644
--- a/src/resolve/resolved-dns-transaction.c
+++ b/src/resolve/resolved-dns-transaction.c
@@ -664,9 +664,9 @@ void dns_transaction_process_reply(DnsTransaction *t, DnsPacket *p) {
dns_transaction_complete(t, DNS_TRANSACTION_RESOURCES);
return;
}
-
- return;
}
+
+ return;
}
/* Parse message, if it isn't parsed yet. */