summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStefan Eissing <stefan@eissing.org>2023-04-13 13:52:42 +0200
committerDaniel Stenberg <daniel@haxx.se>2023-04-13 17:20:29 +0200
commitf67d6a688810f9c796dbac7b5ab5c1e24ae5973e (patch)
tree1106bf6362adccc8b7b2a37c9e1d7b9670d51e66 /lib
parent8b8d7acc6e7086358b744032b9cf3643029acd5e (diff)
downloadcurl-f67d6a688810f9c796dbac7b5ab5c1e24ae5973e.tar.gz
cf-socket: remove dead code discovered by PVS
Closes #10960
Diffstat (limited to 'lib')
-rw-r--r--lib/cf-socket.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/cf-socket.c b/lib/cf-socket.c
index eced7bf9c..830daa1f5 100644
--- a/lib/cf-socket.c
+++ b/lib/cf-socket.c
@@ -1605,10 +1605,6 @@ static CURLcode cf_udp_connect(struct Curl_cfilter *cf,
result = cf_socket_open(cf, data);
if(result) {
DEBUGF(LOG_CF(data, cf, "cf_udp_connect(), open failed -> %d", result));
- if(ctx->sock != CURL_SOCKET_BAD) {
- socket_close(data, cf->conn, TRUE, ctx->sock);
- ctx->sock = CURL_SOCKET_BAD;
- }
goto out;
}