mirror of
https://github.com/systemd/systemd.git
synced 2024-12-26 03:22:00 +03:00
resolved: add comment to dns_stream_complete() about its 'error' argument
This commit is contained in:
parent
9c9e017067
commit
f447d9e376
@ -52,6 +52,10 @@ static int dns_stream_complete(DnsStream *s, int error) {
|
||||
_cleanup_(dns_stream_unrefp) _unused_ DnsStream *ref = dns_stream_ref(s); /* Protect stream while we process it */
|
||||
|
||||
assert(s);
|
||||
assert(error >= 0);
|
||||
|
||||
/* Error is > 0 when the connection failed for some reason in the network stack. It's == 0 if we sent
|
||||
* and receieved exactly one packet each (in the LLMNR client case). */
|
||||
|
||||
#if ENABLE_DNS_OVER_TLS
|
||||
if (s->encrypted) {
|
||||
|
Loading…
Reference in New Issue
Block a user