X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/b1ab9ed8d0e0f1c3b66d7daa8fd5564444c56195..4d3cab3d35f4c42d2870204fa61908caab38d33e:/libsecurity_codesigning/lib/sigblob.cpp diff --git a/libsecurity_codesigning/lib/sigblob.cpp b/libsecurity_codesigning/lib/sigblob.cpp index 95ad32dc..a82a6548 100644 --- a/libsecurity_codesigning/lib/sigblob.cpp +++ b/libsecurity_codesigning/lib/sigblob.cpp @@ -34,13 +34,15 @@ namespace CodeSigning { CFDataRef EmbeddedSignatureBlob::component(CodeDirectory::SpecialSlot slot) const { - if (const BlobCore *blob = this->find(slot)) - if (CodeDirectory::slotAttributes(slot) & cdComponentIsBlob) + if (const BlobCore *blob = this->find(slot)) { + if (CodeDirectory::slotAttributes(slot) & cdComponentIsBlob) { return makeCFData(*blob); // is a native Blob - else if (const BlobWrapper *wrap = BlobWrapper::specific(blob)) + } else if (const BlobWrapper *wrap = BlobWrapper::specific(blob)) { return makeCFData(*wrap); - else + } else { MacOSError::throwMe(errSecCSSignatureInvalid); + } + } return NULL; }