msroots: Match original C logic for MSROOTS tag matching
This commit is contained in:
+2
-1
@@ -79,7 +79,8 @@ impl MsRoots {
|
|||||||
ptr = ptr.add(1);
|
ptr = ptr.add(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if tag != TAG_MSROOTS_MID && (tag != TAG_MSROOTS_END || object_id == YKPIV_OBJ_MSROOTS5)
|
if ((TAG_MSROOTS_MID != tag) && (TAG_MSROOTS_END != tag))
|
||||||
|
|| ((YKPIV_OBJ_MSROOTS5 == object_id) && (TAG_MSROOTS_END != tag))
|
||||||
{
|
{
|
||||||
// the current object doesn't contain a valid part of a msroots file
|
// the current object doesn't contain a valid part of a msroots file
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user