mirror of
https://github.com/systemd/systemd.git
synced 2025-01-14 23:24:38 +03:00
socket-proxy: close correct fd, log at right log level
This commit is contained in:
parent
647f2ee259
commit
76c59537f3
@ -522,8 +522,8 @@ static int accept_cb(sd_event_source *s, int fd, uint32_t revents, void *userdat
|
|||||||
|
|
||||||
r = add_connection_socket(context, nfd);
|
r = add_connection_socket(context, nfd);
|
||||||
if (r < 0) {
|
if (r < 0) {
|
||||||
log_error_errno(r, "Failed to accept connection, ignoring: %m");
|
log_warning_errno(r, "Failed to accept connection, ignoring: %m");
|
||||||
safe_close(fd);
|
safe_close(nfd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user