mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
socket-proxy: close correct fd, log at right log level
This commit is contained in:
@@ -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);
|
||||
if (r < 0) {
|
||||
log_error_errno(r, "Failed to accept connection, ignoring: %m");
|
||||
safe_close(fd);
|
||||
log_warning_errno(r, "Failed to accept connection, ignoring: %m");
|
||||
safe_close(nfd);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user