Clone the path chunk before adding to measurements list

This commit is contained in:
Sansar Choinyambuu authored and Andreas Steffen committed 2011-09-08 12:08:14 +02:00
1 parent cd669535e6
commit 8ada2b68a3
1 file changed
+1 -1
@@ -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