From f289977675358dbd9d048e86f00d89b74c53ad7b Mon Sep 17 00:00:00 2001 From: ohhyunjun <141508933+Ohyunj@users.noreply.github.com> Date: Fri, 28 Aug 2026 17:15:27 +0900 Subject: ktls_send_ctrl_message(): Fix parameter name from 'lengthi' to 'length' In include/internal/ktls.h, the variable/parameter lengthi is used in Kernel TLS (KTLS) helper declarations and macros, whereas all related functions across the codebase consistently use length. This naming inconsistency triggers static analysis warnings (including potential CWE-467 flags regarding parameter/pointer evaluation in macro expansions) and creates confusion during maintenance. The identifier lengthi appears to be an unintended typo introduced during the original KTLS interface definition. CLA: trivial Reviewed-by: Neil Horman Reviewed-by: Norbert Pocs Reviewed-by: Paul Dale Merge-date: Mon Sep 7 18:42:31 2026 Merged-from: https://github.com/openssl/openssl/pull/32568 --- include/internal/ktls.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/internal/ktls.h b/include/internal/ktls.h index d358481999e..cf14728fa51 100644 --- a/include/internal/ktls.h +++ b/include/internal/ktls.h @@ -98,7 +98,7 @@ static ossl_inline int ktls_enable_tx_zerocopy_sendfile(int fd) * record using this control message. */ static ossl_inline int ktls_send_ctrl_message(int fd, - unsigned char record_type, const void *data, size_t lengthi, int flags) + unsigned char record_type, const void *data, size_t length, int flags) { struct msghdr msg = { 0 }; int cmsg_len = sizeof(record_type); -- cgit