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

"'Mounir IDRASSI' via openssl-commits" <[email protected]> Mon, 03 Aug 2026 08:54:35 -0700
Newsgroups gmane.comp.encryption.openssl.cvs
Message-ID <openssl/openssl/push/refs/heads/openssl-4.0/[email protected]>
  Branch: refs/heads/openssl-4.0
  Home:   https://github.com/openssl/openssl
  Commit: c40d0e386e49d874141e76990e74ab8e40404b77
      https://github.com/openssl/openssl/commit/c40d0e386e49d874141e76990e74ab8e40404b77
  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 ebfcd4cfd4b7 "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: ebfcd4cfd4b7 "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-4.0/ebfcd4-c40d0e%40github.com.