send an error attribute if vendor ID or type of received attribute is reserved
This commit is contained in:
parent
a3a190b7bd
commit
818fe7c024
1 changed files with 12 additions and 0 deletions
|
@ -284,6 +284,18 @@ METHOD(pa_tnc_msg_t, process, status_t,
|
|||
}
|
||||
DBG3(DBG_TNC, "%B", &value);
|
||||
|
||||
if (vendor_id == PEN_RESERVED)
|
||||
{
|
||||
error = ietf_attr_pa_tnc_error_create_with_offset(error_code,
|
||||
this->encoding, offset + 1);
|
||||
goto err;
|
||||
}
|
||||
if (type == IETF_ATTR_RESERVED)
|
||||
{
|
||||
error = ietf_attr_pa_tnc_error_create_with_offset(error_code,
|
||||
this->encoding, offset + 4);
|
||||
goto err;
|
||||
}
|
||||
attr = imcv_pa_tnc_attributes->create(imcv_pa_tnc_attributes,
|
||||
vendor_id, type, value);
|
||||
if (!attr)
|
||||
|
|
Loading…
Reference in a new issue