Corrected APDU overrun problem in RPM handler. Thank you to Jérémy for reporting and Tomás for confirming!

This commit is contained in:
skarg
2009-03-19 15:23:20 +00:00
parent 5feece5e5c
commit dff62808bd
+2 -2
View File
@@ -421,7 +421,7 @@ void handler_read_property_multiple(
/* handle the error code - but use the special property */
len =
RPM_Encode_Property(&Handler_Transmit_Buffer[0],
npdu_len + apdu_len, sizeof(Handler_Transmit_Buffer),
npdu_len + apdu_len, MAX_APDU,
object_type, object_instance, object_property,
array_index);
if (len > 0) {
@@ -440,7 +440,7 @@ void handler_read_property_multiple(
special_object_property, index);
len =
RPM_Encode_Property(&Handler_Transmit_Buffer[0],
npdu_len + apdu_len, sizeof(Handler_Transmit_Buffer),
npdu_len + apdu_len, MAX_APDU,
object_type, object_instance, object_property,
array_index);
if (len > 0) {