pts: Do not override status with SUCCESS if length is invalid
This commit is contained in:
committed by
Andreas Steffen
parent
919449a3f1
commit
027c19b097
@@ -242,6 +242,8 @@ METHOD(pa_tnc_attr_t, process, status_t,
|
|||||||
this->count--;
|
this->count--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
status = SUCCESS;
|
||||||
|
|
||||||
if (this->length != this->offset)
|
if (this->length != this->offset)
|
||||||
{
|
{
|
||||||
DBG1(DBG_TNC, "inconsistent length for %N/%N", pen_names, PEN_TCG,
|
DBG1(DBG_TNC, "inconsistent length for %N/%N", pen_names, PEN_TCG,
|
||||||
@@ -249,7 +251,6 @@ METHOD(pa_tnc_attr_t, process, status_t,
|
|||||||
*offset = this->offset;
|
*offset = this->offset;
|
||||||
status = FAILED;
|
status = FAILED;
|
||||||
}
|
}
|
||||||
status = SUCCESS;
|
|
||||||
|
|
||||||
end:
|
end:
|
||||||
reader->destroy(reader);
|
reader->destroy(reader);
|
||||||
|
|||||||
Reference in New Issue
Block a user