projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
106784e
)
resolved: move assertion
author
Daniel Mack
<daniel@zonque.org>
Tue, 4 Aug 2015 08:37:59 +0000
(10:37 +0200)
committer
Daniel Mack
<daniel@zonque.org>
Tue, 25 Aug 2015 12:25:58 +0000
(14:25 +0200)
Make a scope with invalid protocol state fail as soon as possible.
src/resolve/resolved-dns-transaction.c
patch
|
blob
|
history
diff --git
a/src/resolve/resolved-dns-transaction.c
b/src/resolve/resolved-dns-transaction.c
index
faea058
..
7b84c1b
100644
(file)
--- 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)) {