Skip to content
Permalink
Browse files
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
  • Loading branch information
Kevin Jacobs committed Jan 25, 2021
1 parent bda8540 commit 722c105090b96183a5fc51d62171506dacc4839e
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit 722c105

Please sign in to comment.