static upper size limit for PA-TNC messages

This commit is contained in:
Andreas Steffen
2012-07-12 21:26:18 +02:00
parent 8d98f7fef6
commit ea67a75b98
27 changed files with 251 additions and 68 deletions
+4
View File
@@ -95,6 +95,10 @@ METHOD(pa_tnc_attr_t, set_noskip_flag,void,
METHOD(pa_tnc_attr_t, build, void,
private_ita_attr_command_t *this)
{
if (this->value.ptr)
{
return;
}
this->value = chunk_create(this->command, strlen(this->command));
this->value = chunk_clone(this->value);
}
+4
View File
@@ -95,6 +95,10 @@ METHOD(pa_tnc_attr_t, set_noskip_flag,void,
METHOD(pa_tnc_attr_t, build, void,
private_ita_attr_dummy_t *this)
{
if (this->value.ptr)
{
return;
}
this->value = chunk_alloc(this->size);
memset(this->value.ptr, 0xdd, this->value.len);
}