Corrected RPM and RP in ports projects to handle MAX APDU Accepted.

This commit is contained in:
skarg
2010-01-11 04:39:22 +00:00
parent 468bad5d1b
commit e42abbf74b
5 changed files with 30 additions and 5 deletions
+10 -1
View File
@@ -163,7 +163,16 @@ void handler_read_property(
len =
rp_ack_encode_apdu(&Handler_Transmit_Buffer[pdu_len],
service_data->invoke_id, &data);
error = false;
if (len > service_data->max_resp) {
/* too big for the sender - send an abort */
len =
abort_encode_apdu(&Handler_Transmit_Buffer[pdu_len],
service_data->invoke_id, ABORT_REASON_SEGMENTATION_NOT_SUPPORTED,
true);
goto RP_ABORT;
} else {
error = false;
}
}
if (error) {
if (len == -2) {