修复ssl_stream_new中不必要的getpeername以及由此造成的写越界。
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user