socket-proxy: close correct fd, log at right log level

This commit is contained in:
Lennart Poettering 2020-10-01 22:20:42 +02:00
parent 647f2ee259
commit 76c59537f3
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}