From e8aa8e021a786a5b182cdc6d6541243fbdfba7a4 Mon Sep 17 00:00:00 2001 From: tb <> Date: Wed, 20 Jan 2021 07:05:25 +0000 Subject: 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 --- src/lib/libssl/tls12_record_layer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib') diff --git a/src/lib/libssl/tls12_record_layer.c b/src/lib/libssl/tls12_record_layer.c index 83d71d1c7a..b45a625fd4 100644 --- a/src/lib/libssl/tls12_record_layer.c +++ b/src/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 <jsing@openbsd.org> * @@ -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)) -- cgit v1.2.3-55-g6feb