update: always scrub final swap buffer

Ensure tmpBuffer is zeroized on the common exit path in wolfBoot_swap_and_final_erase, not only in EXT_ENCRYPTED builds.

F/CI
pull/745/head
Daniele Lacamera 2026-04-10 05:47:06 +02:00
parent f8ec206082
commit 884249316b
1 changed files with 0 additions and 2 deletions

View File

@ -542,9 +542,7 @@ static int RAMFUNCTION wolfBoot_swap_and_final_erase(int resume)
#endif
hal_flash_lock();
#ifdef EXT_ENCRYPTED
wolfBoot_zeroize(tmpBuffer, sizeof(tmpBuffer));
#endif
(void)ret;
return 0;
}