Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1663661 - Guard against NULL token in nssSlot_IsTokenPresent. r=jcj
This patch addresses locking inconsistency in `nssSlot_IsTokenPresent` by retaining the slot lock for the duration of accesses to `slot->token`. This is already done correctly elsewhere. As a side effect, this introduces an ordering requirement: we take `slot->lock` followed by `session->lock`. Differential Revision: https://phabricator.services.mozilla.com/D95636 --HG-- extra : moz-landing-system : lando
- Loading branch information
Kevin Jacobs
committed
Nov 3, 2020
1 parent
aa23578
commit d1f32b4
Showing
2 changed files
with
19 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters