summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
authortb <>2020-03-16 15:11:35 +0000
committertb <>2020-03-16 15:11:35 +0000
commit32be1a54d46e2dd4e81e6aa7ba36eec513f5833f (patch)
tree6a053ff9c6b2a4df1c707c9d61c1f161618cff0c /src/lib/libssl/ssl_lib.c
parent106f32938eaf7e2baa136e46129f9e5c8888ece6 (diff)
downloadopenbsd-32be1a54d46e2dd4e81e6aa7ba36eec513f5833f.tar.gz
openbsd-32be1a54d46e2dd4e81e6aa7ba36eec513f5833f.tar.bz2
openbsd-32be1a54d46e2dd4e81e6aa7ba36eec513f5833f.zip
The RFC is clear (section 5.3) that sequence number should never wrap.
We currently throw an error on overflow, but still wrap. Check up front if we would need to wrap and only increment if that case is excluded. This simplifies the increment loop and makes the returns in this function less magic. ok jsing
Diffstat (limited to 'src/lib/libssl/ssl_lib.c')
0 files changed, 0 insertions, 0 deletions