Exempt ignored PA-TNC attributes from error handling

This commit is contained in:
Andreas Steffen
2015-05-20 06:13:15 +02:00
parent c077642cbd
commit e6952442f2
+8 -1
View File
@@ -226,7 +226,14 @@ METHOD(pa_tnc_msg_t, process, status_t,
reader, FALSE, &offset, this->encoding, &error); reader, FALSE, &offset, this->encoding, &error);
if (!attr) if (!attr)
{ {
goto err; if (error)
{
goto err;
}
else
{
continue;
}
} }
attr_value = attr->get_value(attr); attr_value = attr->get_value(attr);
attr_type = attr->get_type(attr); attr_type = attr->get_type(attr);