diff --git a/app/nginx-1.11.10/src/event/modules/ngx_ff_module.c b/app/nginx-1.11.10/src/event/modules/ngx_ff_module.c index c584edd79..0d37baff5 100644 --- a/app/nginx-1.11.10/src/event/modules/ngx_ff_module.c +++ b/app/nginx-1.11.10/src/event/modules/ngx_ff_module.c @@ -152,6 +152,10 @@ static inline int restore_fstack_fd(int sockfd) { /* Tell whether a 'sockfd' belongs to fstack. */ static inline int is_fstack_fd(int sockfd) { + if (unlikely(inited == 0)) { + return 0; + } + return sockfd >= ngx_max_sockets; }