vtls_scache: remove "Unreachable Call"

The condition required to reach this call could not happen, because
cf_ssl_scache_get() already checks the same condition and returns NULL
for 'scache' prior to this.

Found by CodeSonar

Closes #16896
This commit is contained in:
Daniel Stenberg 2025-04-01 10:46:07 +02:00
parent 49a87e93c3
commit 63c1e6482a
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -861,10 +861,6 @@ CURLcode Curl_ssl_scache_put(struct Curl_cfilter *cf,
Curl_ssl_session_destroy(s);
return CURLE_OK;
}
if(!GOOD_SCACHE(scache)) {
Curl_ssl_session_destroy(s);
return CURLE_BAD_FUNCTION_ARGUMENT;
}
Curl_ssl_scache_lock(data);
result = cf_scache_add_session(cf, data, scache, ssl_peer_key, s);