1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-28 11:21:59 +03:00

socket: drop redundant TAKE_FD(cfd) line

In the only two codepaths we reach this place we know that cfd is
already invalidated. In the Accept=yes case there's already a
TAKE_FD() a few lines further up, and in the Accept=no case there is no
connection fd anyway.
This commit is contained in:
Lennart Poettering 2023-09-27 17:21:51 +02:00
parent 3dde96d854
commit 529f768ab8

View File

@ -2432,7 +2432,6 @@ static void socket_enter_running(Socket *s, int cfd_in) {
unit_add_to_dbus_queue(UNIT(s));
}
TAKE_FD(cfd);
return;
refuse: