added the IMV_ATTESTATION_STATE_NONCE_REQ state
[strongswan.git] / src / libimcv / plugins / imv_scanner / imv_scanner_state.c
index fd0db0d..a9b048b 100644 (file)
@@ -116,6 +116,11 @@ METHOD(imv_state_t, get_reason_string, bool,
        u_char *pos;
        int i;
 
        u_char *pos;
        int i;
 
+       if (!this->violating_ports)
+       {
+               return FALSE;
+       }
+
        while (eat_whitespace(&preferred_language))
        {
                if (!extract_token(&pref_lang, ',', &preferred_language))
        while (eat_whitespace(&preferred_language))
        {
                if (!extract_token(&pref_lang, ',', &preferred_language))