Changed the APDU handler to handle freeing the transactions even when there is a custom handler being used.

This commit is contained in:
skarg
2005-12-17 22:37:16 +00:00
parent 9a9d072e14
commit 1f34710f24
3 changed files with 14 additions and 8 deletions
+3 -4
View File
@@ -270,8 +270,7 @@ void apdu_handler(
src,
invoke_id);
}
else
tsm_free_invoke_id(invoke_id);
tsm_free_invoke_id(invoke_id);
break;
default:
break;
@@ -319,8 +318,7 @@ void apdu_handler(
src,
&service_ack_data);
}
else
tsm_free_invoke_id(invoke_id);
tsm_free_invoke_id(invoke_id);
break;
default:
break;
@@ -331,6 +329,7 @@ void apdu_handler(
case PDU_TYPE_REJECT:
case PDU_TYPE_ABORT:
invoke_id = apdu[1];
/* FIXME: what about a way to let a client know? */
tsm_free_invoke_id(invoke_id);
break;
default: