imv-attestation: Properly measure complete directories
authorTobias Brunner <tobias@strongswan.org>
Wed, 24 Jul 2013 14:23:14 +0000 (16:23 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 25 Jul 2013 09:28:26 +0000 (11:28 +0200)
src/libpts/plugins/imv_attestation/attest_db.c

index e55aa14..d7654ab 100644 (file)
@@ -1665,7 +1665,7 @@ static bool add_hash(private_attest_db_t *this)
        }
        else
        {
-               measurements = pts_file_meas_create_from_path(0, pathname, TRUE,
+               measurements = pts_file_meas_create_from_path(0, this->dir, TRUE,
                                                                                                          TRUE, this->algo);
        }
        if (!measurements)