lpac-jni: Run euicc_http_cleanup()
on success
All checks were successful
/ build-debug (push) Successful in 4m41s
All checks were successful
/ build-debug (push) Successful in 4m41s
This commit is contained in:
parent
db8063cd5f
commit
ece231f17b
1 changed files with 3 additions and 0 deletions
|
@ -126,8 +126,11 @@ Java_net_typeblog_lpac_1jni_LpacJni_downloadProfile(JNIEnv *env, jobject thiz, j
|
|||
syslog(LOG_INFO, "es10b_load_bound_profile_package %d, reason %d", ret, es10b_load_bound_profile_package_result.errorReason);
|
||||
if (ret < 0) {
|
||||
ret = - (int) es10b_load_bound_profile_package_result.errorReason;
|
||||
goto out;
|
||||
}
|
||||
|
||||
euicc_http_cleanup(ctx);
|
||||
|
||||
out:
|
||||
// We expect Java side to call cancelSessions after any error -- thus, `euicc_http_cleanup` is done there
|
||||
// This is so that Java side can access the last HTTP and/or APDU errors when we return.
|
||||
|
|
Loading…
Add table
Reference in a new issue