修复ssl_stream_new中不必要的getpeername以及由此造成的写越界。

This commit is contained in:
zhengchao
2018-09-07 15:19:28 +08:00
parent 3810d4d1f9
commit 89b79eab60
2 changed files with 2 additions and 4 deletions

View File

@@ -156,7 +156,7 @@ void future_destroy(struct future * f)
struct promise * p = future_to_promise(f);
if (p->cb_ctx_destroy != NULL)
{
p->cb_ctx_destroy(p);
p->cb_ctx_destroy(p->ctx);
}
FS_operate(g_FP_instance.fs_handle,g_FP_instance.fsid_f_num, 0, FS_OP_SUB, 1);
memset(p, 0, sizeof(struct promise));