Clone the path chunk before adding to measurements list
This commit is contained in:
committed by
Andreas Steffen
parent
cd669535e6
commit
8ada2b68a3
@@ -342,7 +342,7 @@ TNC_Result TNC_IMC_ReceiveMessage(TNC_IMCID imc_id,
|
|||||||
DBG1(DBG_IMC, "Hashing the given file has failed");
|
DBG1(DBG_IMC, "Hashing the given file has failed");
|
||||||
return TNC_RESULT_FATAL;
|
return TNC_RESULT_FATAL;
|
||||||
}
|
}
|
||||||
attr_file_meas->add_file_meas(attr_file_meas, file_hash, path);
|
attr_file_meas->add_file_meas(attr_file_meas, file_hash, chunk_clone(path));
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user