]> git.saurik.com Git - apple/libsecurity_codesigning.git/blobdiff - lib/Code.cpp
libsecurity_codesigning-55037.6.tar.gz
[apple/libsecurity_codesigning.git] / lib / Code.cpp
index 40a1edcd37e46fff855596cb0068a9de6274b584..ab5072aec05ac5726d264e54f4de488ae3d2b2c7 100644 (file)
@@ -49,7 +49,9 @@ SecCode::SecCode(SecCode *host)
 // Clean up a SecCode object
 //
 SecCode::~SecCode() throw()
 // Clean up a SecCode object
 //
 SecCode::~SecCode() throw()
-{
+try {
+} catch (...) {
+       return;
 }
 
 
 }
 
 
@@ -180,7 +182,7 @@ void SecCode::checkValidity(SecCSFlags flags)
 {
        if (this->isRoot()) {
                // the root-of-trust is valid by definition
 {
        if (this->isRoot()) {
                // the root-of-trust is valid by definition
-               CODESIGN_EVAL_DYNAMIC_ROOT();
+               CODESIGN_EVAL_DYNAMIC_ROOT(this);
                return;
        }
        DTRACK(CODESIGN_EVAL_DYNAMIC, this, (char*)this->staticCode()->mainExecutablePath().c_str());
                return;
        }
        DTRACK(CODESIGN_EVAL_DYNAMIC, this, (char*)this->staticCode()->mainExecutablePath().c_str());