初始化kni_acceptor结构体

This commit is contained in:
Lu Qiuwen
2018-10-23 19:24:52 +08:00
parent 0c3d216cf3
commit e2030da1cd

View File

@@ -187,9 +187,9 @@ void __kni_event_cb(evutil_socket_t fd, short what, void * user)
{ {
struct kni_acceptor * __ctx = (struct kni_acceptor *)user; struct kni_acceptor * __ctx = (struct kni_acceptor *)user;
struct cmsghdr * __cmsghdr; struct cmsghdr * __cmsghdr;
struct tfe_proxy_accept_para __accept_para; struct tfe_proxy_accept_para __accept_para{};
int * __fds = NULL;
int * __fds = NULL;
assert(__ctx != NULL && __ctx->thread == pthread_self()); assert(__ctx != NULL && __ctx->thread == pthread_self());
assert(what & EV_READ); assert(what & EV_READ);