From e554422ba4a927579843303902a091bc0dbe5c86 Mon Sep 17 00:00:00 2001 From: liuchang0812 Date: Tue, 7 Feb 2017 11:10:32 +0800 Subject: [PATCH] msg/async: remove useless close function fix coverity cid 1395314: it's invalid to pass a negative value to close function, and we have closed socket in net.connect/nonblock_connect in error cases indeed Signed-off-by: liuchang0812 --- src/msg/async/PosixStack.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/msg/async/PosixStack.cc b/src/msg/async/PosixStack.cc index 67495c60c98..7651961ec25 100644 --- a/src/msg/async/PosixStack.cc +++ b/src/msg/async/PosixStack.cc @@ -345,7 +345,6 @@ int PosixWorker::connect(const entity_addr_t &addr, const SocketOptions &opts, C } if (sd < 0) { - ::close(sd); return -errno; } -- 2.39.5