From 722c105090b96183a5fc51d62171506dacc4839e Mon Sep 17 00:00:00 2001 From: Kevin Jacobs Date: Mon, 25 Jan 2021 20:54:07 +0000 Subject: [PATCH] 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 --- lib/ssl/ssl3exthandle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.23.0