mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-06 00:00:47 -04:00
send an error attribute if vendor ID or type of received attribute is reserved
This commit is contained in:
parent
a3a190b7bd
commit
818fe7c024
@ -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…
x
Reference in New Issue
Block a user