控制外部指针在future中的传递层数。

修复future-promise 回调函数中的use after free,包括web cache pend, web cache write和key keeper。
修复decrypt mirror中的写越界。
This commit is contained in:
zhengchao
2019-01-07 19:42:23 +06:00
parent dd223d547d
commit c303326c40
5 changed files with 11 additions and 13 deletions

View File

@@ -354,17 +354,15 @@ static void certstore_rpc_on_succ(void* result, void* user)
{
key_keeper_free_keyring((struct keyring*)kyr);
}
}
}
ctx->ref_keeper->stat.new_issue++;
promise_success(p, (void*)kyr);
key_keeper_free_keyring((struct keyring*)kyr);
ctx->ref_keeper->stat.new_issue++;
}
else
{
promise_failed(p, FUTURE_ERROR_EXCEPTION, status_msg);
}
//promise_dettach_ctx(p);
//ctx_destroy_cb((void*)ctx);
}
static void certstore_rpc_on_fail(enum e_future_error err, const char * what, void * user)