cf-socket: remove dead code discovered by PVS

Closes #10960
This commit is contained in:
Stefan Eissing 2023-04-13 13:52:42 +02:00 committed by Daniel Stenberg
parent 8b8d7acc6e
commit f67d6a6888
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -1605,10 +1605,6 @@ static CURLcode cf_udp_connect(struct Curl_cfilter *cf,
result = cf_socket_open(cf, data); result = cf_socket_open(cf, data);
if(result) { if(result) {
DEBUGF(LOG_CF(data, cf, "cf_udp_connect(), open failed -> %d", 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; goto out;
} }