mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 23:38:38 +09:00
import change from tenfourfox:
- fix overzealous assertion (M1531906) (af9a8236e)
This commit is contained in:
parent
48b96210d1
commit
1455a4fcbd
1 changed files with 3 additions and 2 deletions
|
|
@ -1200,14 +1200,15 @@ ssl3_SetSIDSessionTicket(sslSessionID *sid,
|
|||
* anything yet, so no locking is needed.
|
||||
*/
|
||||
if (sid->u.ssl3.lock) {
|
||||
PORT_Assert(sid->cached == in_client_cache);
|
||||
PR_RWLock_Wlock(sid->u.ssl3.lock);
|
||||
/* Another thread may have evicted, or it may be in external cache. */
|
||||
PORT_Assert(sid->cached != never_cached);
|
||||
}
|
||||
/* If this was in the client cache, then we might have to free the old
|
||||
* ticket. In TLS 1.3, we might get a replacement ticket if the server
|
||||
* sends more than one ticket. */
|
||||
if (sid->u.ssl3.locked.sessionTicket.ticket.data) {
|
||||
PORT_Assert(sid->cached == in_client_cache ||
|
||||
PORT_Assert(sid->cached != never_cached ||
|
||||
sid->version >= SSL_LIBRARY_VERSION_TLS_1_3);
|
||||
SECITEM_FreeItem(&sid->u.ssl3.locked.sessionTicket.ticket,
|
||||
PR_FALSE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue