imv-agent: Fix get_attribute() call for preferred language

This commit is contained in:
Tobias Brunner
2017-09-18 12:16:54 +02:00
parent 7e7800e0a3
commit d04deff4df
+2 -2
View 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;