Files
mu300-linux/openwrt/lpac-stdio.patch
T
kanoqwq 71df27e0fa feat: add eUICC management, call alerts and V50 product forms
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.
2026-11-10 22:22:58 +08:00

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;
}