]> git.itanic.dy.fi Git - rrdd/commit
network_parser: Fix fd leak due to missing close after connect() fail
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Sun, 25 Oct 2020 16:07:16 +0000 (18:07 +0200)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Sun, 25 Oct 2020 16:07:16 +0000 (18:07 +0200)
commit596f74bf1a41e53fb4138a33f713fabdce73500e
treefbd05fef14ed45639792a14cb890c60a086358b7
parent79f70e219dd77051935892bd45e223d5ebb0d632
network_parser: Fix fd leak due to missing close after connect() fail

If connect() fails, we still have the socket and it must be closed
that was created when we call socket() earlier.

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
network_parser.c