diff options
author | Kevin Jacobs <kjacobs@mozilla.com> | 2021-01-25 20:54:07 +0000 |
---|---|---|
committer | Kevin Jacobs <kjacobs@mozilla.com> | 2021-01-25 20:54:07 +0000 |
commit | d56b7ba04b127de8946f92b1203cc5f438a818cf (patch) | |
tree | 6b556470b9dd26f42033aab133d40289fae50e82 | |
parent | e5a05dd7507c098ec258ea55bc9a85dc86533d69 (diff) | |
download | nss-hg-d56b7ba04b127de8946f92b1203cc5f438a818cf.tar.gz |
Bug 1674819 - Fixup a51fae403328, enum type may be signed. r=bbeurdouche
Differential Revision: https://phabricator.services.mozilla.com/D102964
-rw-r--r-- | lib/ssl/ssl3exthandle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssl/ssl3exthandle.c b/lib/ssl/ssl3exthandle.c index fa1c66ee2..edc79cd6b 100644 --- a/lib/ssl/ssl3exthandle.c +++ b/lib/ssl/ssl3exthandle.c @@ -921,7 +921,7 @@ ssl_ParseSessionTicket(sslSocket *ss, const SECItem *decryptedTicket, #ifndef UNSAFE_FUZZER_MODE PORT_Assert(temp < ssl_auth_size); #else - temp %= (8 * sizeof(SSLAuthType)); + temp %= (8 * sizeof(SSLAuthType)) - 1; #endif parsedTicket->authType = (SSLAuthType)temp; |