mirror of
https://github.com/classilla/tenfourfox.git
synced 2025-01-05 18:30:44 +00:00
fix overzealous assertion (M1531906)
This commit is contained in:
parent
bf39401a52
commit
af9a8236e8
@ -1197,14 +1197,15 @@ ssl3_SetSIDSessionTicket(sslSessionID *sid,
|
|||||||
* anything yet, so no locking is needed.
|
* anything yet, so no locking is needed.
|
||||||
*/
|
*/
|
||||||
if (sid->u.ssl3.lock) {
|
if (sid->u.ssl3.lock) {
|
||||||
PORT_Assert(sid->cached == in_client_cache);
|
|
||||||
PR_RWLock_Wlock(sid->u.ssl3.lock);
|
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
|
/* 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
|
* ticket. In TLS 1.3, we might get a replacement ticket if the server
|
||||||
* sends more than one ticket. */
|
* sends more than one ticket. */
|
||||||
if (sid->u.ssl3.locked.sessionTicket.ticket.data) {
|
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);
|
sid->version >= SSL_LIBRARY_VERSION_TLS_1_3);
|
||||||
SECITEM_FreeItem(&sid->u.ssl3.locked.sessionTicket.ticket,
|
SECITEM_FreeItem(&sid->u.ssl3.locked.sessionTicket.ticket,
|
||||||
PR_FALSE);
|
PR_FALSE);
|
||||||
|
Loading…
Reference in New Issue
Block a user