[openssl/openssl] 813a8c: ssl: Remove shadowed variable in write retry path

"'Mounir IDRASSI' via openssl-commits" <[email protected]> Mon, 03 Aug 2026 08:57:39 -0700
Newsgroups gmane.comp.encryption.openssl.cvs
Message-ID <openssl/openssl/push/refs/heads/openssl-3.6/[email protected]>
  Branch: refs/heads/openssl-3.6
  Home:   https://github.com/openssl/openssl
  Commit: 813a8cfc31ffd6bdc2624c7c87a5b024391459f8
      https://github.com/openssl/openssl/commit/813a8cfc31ffd6bdc2624c7c87a5b024391459f8
  Author: Mounir IDRASSI <[email protected]>
  Date:   2026-08-03 (Mon, 03 Aug 2026)

  Changed paths:
    M ssl/record/methods/tls_common.c

  Log Message:
  -----------
  ssl: Remove shadowed variable in write retry path

Commit fae9fd3b6109 "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: fae9fd3b6109 "Fix false success on zero BIO write"

Reviewed-by: Viktor Dukhovni <[email protected]>
Reviewed-by: Andrew Dinh <[email protected]>
Reviewed-by: Jakub Zelenka <[email protected]>
Reviewed-by: Eugene Syromiatnikov <[email protected]>
MergeDate: Mon Aug  3 15:46:22 2026
(Merged from https://github.com/openssl/openssl/pull/32153)

(cherry picked from commit a2eea872d0af948e5b889083f248e270d7326be7)



To unsubscribe from these emails, change your notification settings at https://github.com/openssl/openssl/settings/notifications

-- 
You received this message because you are subscribed to the Google Groups "openssl-commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/a/openssl.org/d/msgid/openssl-commits/openssl/openssl/push/refs/heads/openssl-3.6/fae9fd-813a8c%40github.com.