]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
imv-agent: Fix get_attribute() call for preferred language
authorTobias Brunner <tobias@strongswan.org>
Thu, 14 Sep 2017 16:27:13 +0000 (18:27 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 18 Sep 2017 10:16:54 +0000 (12:16 +0200)
src/libimcv/imv/imv_agent.c

index e96faa77ed9737d658adbfcd51f570dd8ddb2a30..bb0b3b75ba63bfe2ec7ff62bfb4eea99cf2b7777 100644 (file)
@@ -685,9 +685,9 @@ METHOD(imv_agent_t, create_language_enumerator, enumerator_t*,
        );
 
        if (!this->get_attribute ||
-               !this->get_attribute(this->id, state->get_connection_id(state),
+                this->get_attribute(this->id, state->get_connection_id(state),
                                                TNC_ATTRIBUTEID_PREFERRED_LANGUAGE, BUF_LEN,
-                                               e->lang_buf, &e->lang_len) == TNC_RESULT_SUCCESS ||
+                                               e->lang_buf, &e->lang_len) != TNC_RESULT_SUCCESS ||
                e->lang_len >= BUF_LEN)
        {
                e->lang_len = 0;