Skip to content

Commit 1d281a0

Browse files
dtardonbluca
authored andcommitted
resolved-dns-stream: pass the right error variable
(cherry picked from commit be6aa74) (cherry picked from commit ce1df5e) (cherry picked from commit c9c11e0) (cherry picked from commit 4e8cd5b)
1 parent 67d0aaa commit 1d281a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/resolve/resolved-dns-stream.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ static int dns_stream_identify(DnsStream *s) {
195195
/* Make sure all packets for this connection are sent on the same interface */
196196
r = socket_set_unicast_if(s->fd, s->local.sa.sa_family, s->ifindex);
197197
if (r < 0)
198-
log_debug_errno(errno, "Failed to invoke IP_UNICAST_IF/IPV6_UNICAST_IF: %m");
198+
log_debug_errno(r, "Failed to invoke IP_UNICAST_IF/IPV6_UNICAST_IF: %m");
199199
}
200200

201201
s->identified = true;
@@ -454,7 +454,7 @@ static int on_stream_io(sd_event_source *es, int fd, uint32_t revents, void *use
454454
if (progressed && s->timeout_event_source) {
455455
r = sd_event_source_set_time_relative(s->timeout_event_source, DNS_STREAM_ESTABLISHED_TIMEOUT_USEC);
456456
if (r < 0)
457-
log_warning_errno(errno, "Couldn't restart TCP connection timeout, ignoring: %m");
457+
log_warning_errno(r, "Couldn't restart TCP connection timeout, ignoring: %m");
458458
}
459459

460460
return 0;

0 commit comments

Comments
 (0)