diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-10-13 08:14:38 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-10-13 08:24:21 -0400 |
| commit | 5323ae4af4d443b9123b4ec1f00f24da5cde477c (patch) | |
| tree | 5c95d27f5d602091c93ccf626f5199820c543832 /src/core/crypto/key_manager.cpp | |
| parent | 214d206020a38ff5abeff2bd145e4fcb86bd71da (diff) | |
key_manager: Brace long conditional body
If a conditional (or it's body) travels more than one line, it should be
braced.
Diffstat (limited to 'src/core/crypto/key_manager.cpp')
| -rw-r--r-- | src/core/crypto/key_manager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/crypto/key_manager.cpp b/src/core/crypto/key_manager.cpp index 14d53bef9a..1d77fda79e 100644 --- a/src/core/crypto/key_manager.cpp +++ b/src/core/crypto/key_manager.cpp @@ -308,10 +308,11 @@ boost::optional<std::pair<Key128, Key128>> ParseTicket(const TicketRaw& ticket, std::memcpy(&cert_authority, ticket.data() + 0x140, sizeof(cert_authority)); if (cert_authority == 0) return boost::none; - if (cert_authority != Common::MakeMagic('R', 'o', 'o', 't')) + if (cert_authority != Common::MakeMagic('R', 'o', 'o', 't')) { LOG_INFO(Crypto, "Attempting to parse ticket with non-standard certificate authority {:08X}.", cert_authority); + } Key128 rights_id; std::memcpy(rights_id.data(), ticket.data() + 0x2A0, sizeof(Key128)); |
