]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolved: never proceed processing truncated packets
authorLennart Poettering <lennart@poettering.net>
Sat, 26 Dec 2015 13:37:07 +0000 (14:37 +0100)
committerLennart Poettering <lennart@poettering.net>
Sun, 27 Dec 2015 00:41:39 +0000 (01:41 +0100)
Make sure we don't end up processing packets that are truncated.
Instead, actually let the TCP connection do its thing.

src/resolve/resolved-dns-transaction.c

index 2eb1675c5b0e3cd357121225157d48b3f73e4487..5eb569d49d1e52bf35d3b64ee4a61835e2ebba94 100644 (file)
@@ -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. */