diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-10-01 22:20:42 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-10-07 09:40:02 +0200 |
commit | 76c59537f3fef708109f90f6a728a8252d65e420 (patch) | |
tree | 616c881b6bfe30024839c201c74589c4720bec3b /src/socket-proxy | |
parent | man: add docs for sd_event_source_set_exit_on_failure() (diff) | |
download | systemd-76c59537f3fef708109f90f6a728a8252d65e420.tar.xz systemd-76c59537f3fef708109f90f6a728a8252d65e420.zip |
socket-proxy: close correct fd, log at right log level
Diffstat (limited to 'src/socket-proxy')
-rw-r--r-- | src/socket-proxy/socket-proxyd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/socket-proxy/socket-proxyd.c b/src/socket-proxy/socket-proxyd.c index 6042014069..9924220f03 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); } } |