Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
4515-ssl-Ignore-invalid-max-frag-extension.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 4515-ssl-Ignore-invalid-max-frag-extension.patch of Package erlang
From e039cafee663158ff26f7b1a8a881710f425b0ed Mon Sep 17 00:00:00 2001 From: Ingela Anderton Andin <ingela@erlang.org> Date: Fri, 16 Jul 2021 16:10:02 +0200 Subject: [PATCH 5/6] ssl: Ignore invalid max frag extension --- lib/ssl/src/ssl_record.erl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/ssl/src/ssl_record.erl b/lib/ssl/src/ssl_record.erl index 040c4f1ebc..f1cf503097 100644 --- a/lib/ssl/src/ssl_record.erl +++ b/lib/ssl/src/ssl_record.erl @@ -229,7 +229,11 @@ set_max_fragment_length(#max_frag_enum{enum = MaxFragEnum}, current_write := CurrentWrite0, pending_read := PendingRead0, pending_write := PendingWrite0} - = ConnectionStates) -> + = ConnectionStates) when (MaxFragEnum == 1) orelse + (MaxFragEnum == 2) orelse + (MaxFragEnum == 3) orelse + (MaxFragEnum == 4) + -> MaxFragmentLength = if MaxFragEnum == 1 -> ?MAX_FRAGMENT_LENGTH_BYTES_1; MaxFragEnum == 2 -> ?MAX_FRAGMENT_LENGTH_BYTES_2; MaxFragEnum == 3 -> ?MAX_FRAGMENT_LENGTH_BYTES_3; -- 2.26.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor