Fixed Device Address Binding by allowing a zero length APDU to be passed back from the objects, and used -1 as signal for error encoding.

This commit is contained in:
skarg
2006-02-09 17:50:48 +00:00
parent 09dc4d1f04
commit 6d0f6adb90
5 changed files with 19 additions and 12 deletions
+4 -4
View File
@@ -109,7 +109,7 @@ void handler_read_property(
data.array_index,
&error_class,
&error_code);
if (len > 0)
if (len >= 0)
{
// encode the APDU portion of the packet
data.application_data = &Temp_Buf[0];
@@ -138,7 +138,7 @@ void handler_read_property(
data.array_index,
&error_class,
&error_code);
if (len > 0)
if (len >= 0)
{
// encode the APDU portion of the packet
data.application_data = &Temp_Buf[0];
@@ -167,7 +167,7 @@ void handler_read_property(
data.array_index,
&error_class,
&error_code);
if (len > 0)
if (len >= 0)
{
// encode the APDU portion of the packet
data.application_data = &Temp_Buf[0];
@@ -197,7 +197,7 @@ void handler_read_property(
data.array_index,
&error_class,
&error_code);
if (len > 0)
if (len >= 0)
{
// encode the APDU portion of the packet
data.application_data = &Temp_Buf[0];