aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorohhyunjun <[email protected]>2026-08-28 10:15:27 +0200
committerTomas Mraz <[email protected]>2026-09-07 20:41:33 +0200
commitf289977675358dbd9d048e86f00d89b74c53ad7b (patch)
tree7fe7aaac71382718e31fbbcdf799cfa77e272f7a /include
parentAccept CRLs whose IDP names the issuer of a certificate without CDP (diff)
downloadopenssl-f289977675358dbd9d048e86f00d89b74c53ad7b.tar.gz
openssl-f289977675358dbd9d048e86f00d89b74c53ad7b.zip
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 <[email protected]> Reviewed-by: Norbert Pocs <[email protected]> Reviewed-by: Paul Dale <[email protected]> Merge-date: Mon Sep 7 18:42:31 2026 Merged-from: https://github.com/openssl/openssl/pull/32568
Diffstat (limited to 'include')
-rw-r--r--include/internal/ktls.h2
1 files changed, 1 insertions, 1 deletions
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);