Clone the path chunk before adding to measurements list
This commit is contained in:
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");
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user