]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: remove version check when unmarshaling sessionState
authorKatie Hockman <katie@golang.org>
Mon, 18 May 2020 20:49:04 +0000 (16:49 -0400)
committerFilippo Valsorda <filippo@golang.org>
Mon, 18 May 2020 23:09:31 +0000 (23:09 +0000)
commit185c3d46109fe067abf1d4ad4d4812006a55dbe2
tree94946582947340468ca1f70ed0003d7bd7719f33
parent0d39dba6dea120f677a55be83d760acb89a7195d
crypto/tls: remove version check when unmarshaling sessionState

This was causing issues when fuzzing with
TestMarshalUnmarshal since the test would
occassionally set the version to VersionTLS13,
which would fail when unmarshaling. The check
doesn't add much in practice, and there is no
harm in removing it to de-flake the test.

Fixes #38902

Change-Id: I0906c570e9ed69c85fdd2c15f1b52f9e372c62e3
Reviewed-on: https://go-review.googlesource.com/c/go/+/234486
Run-TryBot: Katie Hockman <katie@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
src/crypto/tls/ticket.go