mirror of
https://github.com/systemd/systemd.git
synced 2025-01-13 17:18:18 +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);
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user