mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-14 18:03:44 +00:00
8360539: DTLS handshakes fails due to improper cookie validation logic
Reviewed-by: ascarpino, hchao
This commit is contained in:
parent
839cede1a4
commit
a471fe992f
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2018, 2025, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -187,7 +187,7 @@ abstract class HelloCookieManager {
|
||||
byte[] secret;
|
||||
d10ManagerLock.lock();
|
||||
try {
|
||||
if (((cookieVersion >> 24) & 0xFF) == cookie[0]) {
|
||||
if ((byte) ((cookieVersion >> 24) & 0xFF) == cookie[0]) {
|
||||
secret = cookieSecret;
|
||||
} else {
|
||||
secret = legacySecret; // including out of window cookies
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user