Skip to content

Commit 64a355a

Browse files
committed
restore label for EXT_FLASH configurations
1 parent ab48f05 commit 64a355a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/update_flash.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,10 @@ static int RAMFUNCTION wolfBoot_copy_sector(struct wolfBoot_image *src,
303303
pos += FLASHBUFFER_SIZE;
304304
}
305305
ret = pos;
306-
#ifdef EXT_ENCRYPTED
306+
#if defined(EXT_FLASH) || defined(EXT_ENCRYPTED)
307307
out:
308+
#endif
309+
#ifdef EXT_ENCRYPTED
308310
ForceZero(key, sizeof(key));
309311
ForceZero(nonce, sizeof(nonce));
310312
#endif

0 commit comments

Comments
 (0)