mirror of
https://github.com/curl/curl.git
synced 2026-08-24 15:53:32 +03:00
vtls_scache: fix possible null ptr deref
Pointed out by CodeSonar. It is probably not reachable, but might as well just add a precaution. Closes #15950
This commit is contained in:
parent
779908df43
commit
a19b759dea
1 changed files with 1 additions and 1 deletions
|
|
@ -783,7 +783,7 @@ out:
|
|||
"quic_tp=%s], peer has %zu sessions now",
|
||||
ssl_peer_key, s->ietf_tls_id, s->valid_until - now,
|
||||
s->alpn, s->earlydata_max, s->quic_tp ? "yes" : "no",
|
||||
Curl_llist_count(&peer->sessions));
|
||||
peer ? Curl_llist_count(&peer->sessions) : 0);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue