Skip to content

Commit 36628f1

Browse files
committed
[nrf noup] Fix encrypted app update with UUIDs
Fix encrypted app updates when UUIDs are enabled. There was a lack of path that handles the application itself. Signed-off-by: Tomasz Chyrowicz <tomasz.chyrowicz@nordicsemi.no>
1 parent c10d80f commit 36628f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

boot/bootutil/src/loader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1288,7 +1288,7 @@ boot_validated_swap_type(struct boot_loader_state *state,
12881288
BOOT_LOG_ERR("Cleaned-up secondary slot of image %d", BOOT_CURR_IMG(state));
12891289
return BOOT_SWAP_TYPE_FAIL;
12901290
#endif /* MCUBOOT_IS_SECOND_STAGE */
1291-
} else {
1291+
} else if (target_image != BOOT_CURR_IMG(state)) {
12921292
/* The image in the secondary slot is not intended for any */
12931293
return BOOT_SWAP_TYPE_NONE;
12941294
}

0 commit comments

Comments
 (0)