check if violating_ports have been assigned
authorAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 13 Jul 2011 21:05:22 +0000 (23:05 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 13 Jul 2011 21:05:22 +0000 (23:05 +0200)
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;
 
+       if (!this->violating_ports)
+       {
+               return FALSE;
+       }
+
        while (eat_whitespace(&preferred_language))
        {
                if (!extract_token(&pref_lang, ',', &preferred_language))