abort if fatal error is received from peer
authorAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 9 Nov 2012 15:07:03 +0000 (16:07 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 9 Nov 2012 15:07:03 +0000 (16:07 +0100)
src/libpts/plugins/imv_attestation/imv_attestation.c

index 9d36f2a..8adca98 100644 (file)
@@ -284,7 +284,7 @@ static TNC_Result receive_message(imv_state_t *state, imv_msg_t *in_msg)
                pts->set_platform_info(pts, os_name, os_version);
        }
 
-       if (result != TNC_RESULT_SUCCESS)
+       if (fatal_error || result != TNC_RESULT_SUCCESS)
        {
                out_msg->delete_attributes(out_msg);
                state->set_recommendation(state,