]> git.ipfire.org Git - thirdparty/openssl.git/commit
ssl: Remove shadowed variable in write retry path master
authorMounir IDRASSI <mounir.idrassi@idrix.fr>
Mon, 3 Aug 2026 13:47:08 +0000 (22:47 +0900)
committerEugene Syromiatnikov <esyr@openssl.org>
Mon, 3 Aug 2026 15:45:51 +0000 (17:45 +0200)
commita2eea872d0af948e5b889083f248e270d7326be7
tree2adfb051f251c75e021cfd8f6da07f0068777e93
parent5f3db0d811329b600045842116a062520437c2a1
ssl: Remove shadowed variable in write retry path

Commit 5f3db0d81132 "Fix false success on zero BIO write" introduced
a function-scope left variable while the app-buffer recovery block
already declared one.  This breaks builds using -Werror=shadow.

Assign the current buffer length to the existing function-scope variable
in the recovery block.  This preserves the previous re-read at that point
while eliminating the shadowed declaration.

Fixes: 5f3db0d81132 "Fix false success on zero BIO write"
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Reviewed-by: Andrew Dinh <andrewd@openssl.org>
Reviewed-by: Jakub Zelenka <jakub.zelenka@openssl.foundation>
Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
MergeDate: Mon Aug  3 15:46:22 2026
(Merged from https://github.com/openssl/openssl/pull/32153)
ssl/record/methods/tls_common.c