From 76c59537f3fef708109f90f6a728a8252d65e420 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 1 Oct 2020 22:20:42 +0200 Subject: [PATCH] socket-proxy: close correct fd, log at right log level --- src/socket-proxy/socket-proxyd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/socket-proxy/socket-proxyd.c b/src/socket-proxy/socket-proxyd.c index 60420140696..9924220f032 100644 --- a/src/socket-proxy/socket-proxyd.c +++ b/src/socket-proxy/socket-proxyd.c @@ -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); } } -- 2.47.3