mirror of
https://github.com/systemd/systemd.git
synced 2026-08-07 00:21:01 +00:00
resolved: use RET_NERRNO() where it makes sense
This commit is contained in:
@@ -1208,10 +1208,9 @@ static int manager_dns_stub_fd_extra(Manager *m, DnsStubListenerExtra *l, int ty
|
||||
log_debug_errno(r, "Failed to enable fragment size reception, ignoring: %m");
|
||||
}
|
||||
|
||||
if (bind(fd, &sa.sa, SOCKADDR_LEN(sa)) < 0) {
|
||||
r = -errno;
|
||||
r = RET_NERRNO(bind(fd, &sa.sa, SOCKADDR_LEN(sa)));
|
||||
if (r < 0)
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (type == SOCK_STREAM &&
|
||||
listen(fd, SOMAXCONN) < 0) {
|
||||
|
||||
Reference in New Issue
Block a user