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:
petermcs
2011-03-14 11:13:10 +00:00
parent e48aab8ebb
commit 6407f098ba
+2 -2
View File
@@ -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;