• David Benjamin's avatar
    crypto/tls: Fix c.in.decrypt error handling. · ab6ba994
    David Benjamin authored
    readRecord was not returning early if c.in.decrypt failed and ran
    through the rest of the function. It does set c.in.err, so the various
    checks in the callers do ultimately notice before acting on the result,
    but we should avoid running the rest of the function at all.
    
    Also rename 'err' to 'alertValue' since it isn't actually an error.
    
    Change-Id: I6660924716a85af704bd3fe81521b34766238695
    Reviewed-on: https://go-review.googlesource.com/24709
    Run-TryBot: Adam Langley <agl@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarAdam Langley <agl@golang.org>
    ab6ba994
Name
Last commit
Last update
..
aes Loading commit data...
cipher Loading commit data...
des Loading commit data...
dsa Loading commit data...
ecdsa Loading commit data...
elliptic Loading commit data...
hmac Loading commit data...
md5 Loading commit data...
rand Loading commit data...
rc4 Loading commit data...
rsa Loading commit data...
sha1 Loading commit data...
sha256 Loading commit data...
sha512 Loading commit data...
subtle Loading commit data...
tls Loading commit data...
x509 Loading commit data...
crypto.go Loading commit data...