diff options
author | Daniel Mack <daniel@zonque.org> | 2015-08-04 10:37:59 +0200 |
---|---|---|
committer | Daniel Mack <daniel@zonque.org> | 2015-08-25 14:25:58 +0200 |
commit | 9c56a6f3e2b1fc193cf49f622b57f7ee17766cac (patch) | |
tree | a9fe56b483ce0ea4978d6bf29d67d6c86c84e083 /src/resolve | |
parent | 106784ebb7b303ae471851100a773ad2aebf5b80 (diff) |
resolved: move assertion
Make a scope with invalid protocol state fail as soon as possible.
Diffstat (limited to 'src/resolve')
-rw-r--r-- | src/resolve/resolved-dns-transaction.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resolve/resolved-dns-transaction.c b/src/resolve/resolved-dns-transaction.c index faea0585d3..7b84c1bab8 100644 --- a/src/resolve/resolved-dns-transaction.c +++ b/src/resolve/resolved-dns-transaction.c @@ -375,7 +375,7 @@ void dns_transaction_process_reply(DnsTransaction *t, DnsPacket *p) { break; default: - break; + assert_not_reached("Invalid DNS protocol."); } if (t->received != p) { @@ -412,7 +412,7 @@ void dns_transaction_process_reply(DnsTransaction *t, DnsPacket *p) { break; default: - assert_not_reached("Invalid DNS protocol."); + break; } if (DNS_PACKET_TC(p)) { |