resolved: move assertion
Make a scope with invalid protocol state fail as soon as possible.
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user