]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
socket: drop redundant TAKE_FD(cfd) line
authorLennart Poettering <lennart@poettering.net>
Wed, 27 Sep 2023 15:21:51 +0000 (17:21 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 27 Sep 2023 15:27:23 +0000 (17:27 +0200)
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.

src/core/socket.c

index 43f412bc895fcd0f362cbafde9926c9ce771755f..0b5bfd264875f2fb61fcf2764357f595679036d4 100644 (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: