diff --git a/src/msroots.rs b/src/msroots.rs index 868f3ad..f05ed70 100644 --- a/src/msroots.rs +++ b/src/msroots.rs @@ -79,8 +79,8 @@ impl MsRoots { ptr = ptr.add(1); } - if ((TAG_MSROOTS_MID != tag) && (TAG_MSROOTS_END != tag)) - || ((YKPIV_OBJ_MSROOTS5 == object_id) && (TAG_MSROOTS_END != tag)) + if (TAG_MSROOTS_MID != tag || YKPIV_OBJ_MSROOTS5 == object_id) + && (TAG_MSROOTS_END != tag) { // the current object doesn't contain a valid part of a msroots file