From e7f2c927c2293cf6ac4c614b20d9bdb8f6dc2780 Mon Sep 17 00:00:00 2001 From: Pablo Curiel Date: Wed, 22 Jul 2020 21:34:13 -0400 Subject: [PATCH] FIx small overlook. --- source/nca.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/nca.c b/source/nca.c index d40a2c2..4eb9994 100644 --- a/source/nca.c +++ b/source/nca.c @@ -353,7 +353,7 @@ bool ncaEncryptHeader(NcaContext *ctx) Aes128XtsContext hdr_aes_ctx = {0}, nca0_fs_header_ctx = {0}; /* Encrypt NCA key area. */ - if (!ncaEncryptKeyArea(ctx)) + if (!ctx->rights_id_available && !ncaEncryptKeyArea(ctx)) { LOGFILE("Error encrypting NCA \"%s\" key area!", ctx->content_id_str); return false;