check if assessment has already been done
authorAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 5 Nov 2012 13:46:50 +0000 (14:46 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 5 Nov 2012 13:46:50 +0000 (14:46 +0100)
src/libimcv/plugins/imv_os/imv_os.c

index 1e1cbe2..a9ba0f9 100644 (file)
@@ -360,7 +360,8 @@ static TNC_Result receive_message(imv_state_t *state, imv_msg_t *in_msg)
        }
 
        /* If all Installed Packages attributes were received, go to assessment */
-       if (!os_state->get_package_request(os_state) &&
+       if (!assessment &&
+               !os_state->get_package_request(os_state) &&
                !os_state->get_angel_count(os_state))
        {
                state->set_recommendation(state, TNC_IMV_ACTION_RECOMMENDATION_ALLOW,