Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 015b828d authored by Tommy Chiu's avatar Tommy Chiu Committed by Automerger Merge Worker
Browse files

Correct the expection of DeviceInfo size am: 72abbbd3

parents a24d05e8 72abbbd3
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -473,7 +473,7 @@ ErrMsgOr<std::unique_ptr<cppbor::Map>> parseAndValidateDeviceInfo(
            }
            // TEE IRPC instances require all entries to be present in DeviceInfo. Non-TEE instances
            // may omit `os_version`
            if (!isTeeDeviceInfo(*parsed) && (parsed->size() != kNumTeeDeviceInfoEntries ||
            if (!isTeeDeviceInfo(*parsed) && (parsed->size() != kNumTeeDeviceInfoEntries &&
                                              parsed->size() != kNumTeeDeviceInfoEntries - 1)) {
                error += fmt::format(
                        "Err: Incorrect number of device info entries. Expected {} or {} but got "