Commit 722c1050 authored by Kevin Jacobs's avatar Kevin Jacobs

Bug 1674819 - Fixup a51fae403328, enum type may be signed. r=bbeurdouche

Differential Revision: https://phabricator.services.mozilla.com/D102964

--HG--
extra : moz-landing-system : lando
parent bda8540c
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment