aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-12-04 19:29:15 +0100
committerLennart Poettering <lennart@poettering.net>2018-12-07 17:16:29 +0100
commit499aa1d31b1607a4dcd81b9b19c757ee4f4243b9 (patch)
treed8a3a34bb195599ac7c0007c00818a2a5f372e25 /src/resolve
parentresolved: be more careful with types in dns_stream_writev() (diff)
downloadsystemd-499aa1d31b1607a4dcd81b9b19c757ee4f4243b9.tar.gz
systemd-499aa1d31b1607a4dcd81b9b19c757ee4f4243b9.tar.bz2
systemd-499aa1d31b1607a4dcd81b9b19c757ee4f4243b9.zip
resolved: add some assert()s
Diffstat (limited to 'src/resolve')
-rw-r--r--src/resolve/resolved-dns-stream.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resolve/resolved-dns-stream.c b/src/resolve/resolved-dns-stream.c
index 1db7cf530..b71b898fd 100644
--- a/src/resolve/resolved-dns-stream.c
+++ b/src/resolve/resolved-dns-stream.c
@@ -466,6 +466,7 @@ int dns_stream_new(
int r;
assert(m);
+ assert(ret);
assert(fd >= 0);
if (m->n_dns_streams > DNS_STREAMS_MAX)
@@ -522,6 +523,7 @@ int dns_stream_write_packet(DnsStream *s, DnsPacket *p) {
int r;
assert(s);
+ assert(p);
r = ordered_set_put(s->write_queue, p);
if (r < 0)