mirror of
https://github.com/curl/curl.git
synced 2026-04-14 18:11:40 +03:00
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:
parent
49a87e93c3
commit
63c1e6482a
1 changed files with 0 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue