Skip to content

Commit

Permalink
workaround for es9p cancel session override error_detail
Browse files Browse the repository at this point in the history
  • Loading branch information
estkme committed Aug 17, 2024
1 parent b11878f commit cee7190
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/applet/profile/download.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,10 @@ static int applet_main(int argc, char **argv)

err:
fret = -1;
if (error_detail)
{
error_detail = strdup(error_detail);
}
jprint_progress("es10b_cancel_session", smdp);
es10b_cancel_session(&euicc_ctx, ES10B_CANCEL_SESSION_REASON_ENDUSERREJECTION);
jprint_progress("es9p_cancel_session", smdp);
Expand All @@ -279,6 +283,7 @@ static int applet_main(int argc, char **argv)
{
jprint_error("cancelled", error_function_name);
}
free(error_detail);
exit:
es8p_metadata_free(&profile_metadata);
es10a_euicc_configured_addresses_free(&configured_addresses);
Expand Down

0 comments on commit cee7190

Please sign in to comment.