File not Found, Invalid path, Invalid Delimiter PTS errors case checks implemented
authorSansar Choinyambuu <schoinya@hsr.ch>
Fri, 9 Sep 2011 09:23:19 +0000 (11:23 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 28 Nov 2011 13:28:00 +0000 (14:28 +0100)
src/libimcv/plugins/imc_attestation/imc_attestation.c

index 3c26f9b..58fb178 100644 (file)
@@ -368,6 +368,7 @@ TNC_Result TNC_IMC_ReceiveMessage(TNC_IMCID imc_id,
                                        
                                        if (pts->is_path_valid(pts, pathname, &pts_error) && pts_error)
                                        {
+                                               attr_info = attr->get_value(attr);
                                                attr = ietf_attr_pa_tnc_error_create(PEN_TCG,
                                                                                                pts_error, attr_info);
                                                attr_list->insert_last(attr_list, attr);
@@ -380,6 +381,7 @@ TNC_Result TNC_IMC_ReceiveMessage(TNC_IMCID imc_id,
                                        
                                        if (delimiter != SOLIDUS_UTF && delimiter != REVERSE_SOLIDUS_UTF)
                                        {
+                                               attr_info = attr->get_value(attr);
                                                attr = ietf_attr_pa_tnc_error_create(PEN_TCG,
                                                                                                TCG_PTS_INVALID_DELIMITER, attr_info);
                                                attr_list->insert_last(attr_list, attr);