From 679f355aa8bcbc3c7b8e90a70f23352c47bd32c0 Mon Sep 17 00:00:00 2001 From: tb Date: Wed, 20 Jan 2021 07:05:25 +0000 Subject: [PATCH] Drop unneeded cast in seal_record_protected_cipher eiv_len was changed from an int to a size_t in r1.10, so casting it to a size_t is now a noop. ok jsing --- lib/libssl/tls12_record_layer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libssl/tls12_record_layer.c b/lib/libssl/tls12_record_layer.c index 83d71d1c7a0..b45a625fd48 100644 --- a/lib/libssl/tls12_record_layer.c +++ b/lib/libssl/tls12_record_layer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls12_record_layer.c,v 1.13 2021/01/19 19:07:39 jsing Exp $ */ +/* $OpenBSD: tls12_record_layer.c,v 1.14 2021/01/20 07:05:25 tb Exp $ */ /* * Copyright (c) 2020 Joel Sing * @@ -1041,7 +1041,7 @@ tls12_record_layer_seal_record_protected_cipher(struct tls12_record_layer *rl, goto err; } - plain_len = (size_t)eiv_len + content_len + mac_len; + plain_len = eiv_len + content_len + mac_len; /* Add padding to block size, if necessary. */ if (!tls12_record_protection_block_size(rl->write, &block_size)) -- 2.20.1