mirror of
https://github.com/dikeckaan/mu300-linux.git
synced 2026-12-06 08:03:36 +00:00
Build and verify lpac with the GSMA trust root, provide compact multilingual profile management, and forward incoming call events through existing modem ownership. Allow explicit V50 product-form overrides before modem initialization and validate them in release assembly.
40 lines
941 B
Diff
40 lines
941 B
Diff
--- a/driver/apdu/stdio.c
|
|
+++ b/driver/apdu/stdio.c
|
|
@@ -144,8 +144,8 @@
|
|
|
|
err:
|
|
fret = -1;
|
|
- free(*data);
|
|
if (data) {
|
|
+ free(*data);
|
|
*data = NULL;
|
|
}
|
|
if (data_len) {
|
|
@@ -160,7 +160,7 @@
|
|
static int apdu_interface_connect(struct euicc_ctx *ctx) {
|
|
int ecode;
|
|
|
|
- if (json_request("connect", NULL, 0)) {
|
|
+ if (!json_request("connect", NULL, 0)) {
|
|
return -1;
|
|
}
|
|
|
|
@@ -183,7 +183,7 @@
|
|
static int apdu_interface_logic_channel_open(struct euicc_ctx *ctx, const uint8_t *aid, uint8_t aid_len) {
|
|
int ecode;
|
|
|
|
- if (json_request("logic_channel_open", aid, aid_len)) {
|
|
+ if (!json_request("logic_channel_open", aid, aid_len)) {
|
|
return -1;
|
|
}
|
|
|
|
@@ -209,7 +209,7 @@
|
|
uint32_t tx_len) {
|
|
int ecode;
|
|
|
|
- if (json_request("transmit", tx, tx_len)) {
|
|
+ if (!json_request("transmit", tx, tx_len)) {
|
|
return -1;
|
|
}
|
|
|