SIGN IN SIGN UP

smb: client: Clear sensitive stack data in smb1encrypt.c

Make sure to not leak signature data via the stack, clear it
with memzero_explicit() before leaving the function.

To avoid that we have to introduce "goto"-cleanup here, we re-arrange
the code a little bit (and drop the commented cifs_dump_mem debug
code that looks like a leftover from very early days).

Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Paulo Alcantara <pc@manguebit.org>
T
Thomas Huth committed
2f9af06e30b78ccb6f2708d89793180c29e4feef
Parent: 1a6bd74
Committed by Paulo Alcantara <pc@manguebit.org> on 8/24/2026, 8:08:53 PM