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);
|
||||
apdu_len += len;
|
||||
/* assume next one is the same size as this one */
|
||||
/* can we all fit into the APDU? */
|
||||
if ((apdu_len + len) >= MAX_APDU) {
|
||||
/* can we all fit into the APDU? Don't check for last entry */
|
||||
if ((i != count) && (apdu_len + len) >= MAX_APDU) {
|
||||
/* Abort response */
|
||||
rpdata->error_code =
|
||||
ERROR_CODE_ABORT_SEGMENTATION_NOT_SUPPORTED;
|
||||
|
||||
Reference in New Issue
Block a user