We don't need to check for available space in the APDU once we have encoded the last entry in the object list
This commit is contained in:
@@ -994,8 +994,8 @@ int Device_Read_Property_Local(
|
|||||||
object_type, instance);
|
object_type, instance);
|
||||||
apdu_len += len;
|
apdu_len += len;
|
||||||
/* assume next one is the same size as this one */
|
/* assume next one is the same size as this one */
|
||||||
/* can we all fit into the APDU? */
|
/* can we all fit into the APDU? Don't check for last entry */
|
||||||
if ((apdu_len + len) >= MAX_APDU) {
|
if ((i != count) && (apdu_len + len) >= MAX_APDU) {
|
||||||
/* Abort response */
|
/* Abort response */
|
||||||
rpdata->error_code =
|
rpdata->error_code =
|
||||||
ERROR_CODE_ABORT_SEGMENTATION_NOT_SUPPORTED;
|
ERROR_CODE_ABORT_SEGMENTATION_NOT_SUPPORTED;
|
||||||
|
|||||||
Reference in New Issue
Block a user