Welcome! Log In Create A New Profile

Advanced

[nginx] svn commit: r4692 - trunk/src/os/unix

Anonymous User
June 18, 2012 10:12AM
Author: mdounin
Date: 2012-06-18 14:10:50 +0000 (Mon, 18 Jun 2012)
New Revision: 4692
URL: http://trac.nginx.org/nginx/changeset/4692/nginx

Log:
Fixed segfault with poll and resolver used.

Poll event method needs ngx_cycle->files to work, and use of ngx_exit_cycle
without files set caused null pointer dereference in resolver's cleanup
on udp socket close.


Modified:
trunk/src/os/unix/ngx_process_cycle.c

Modified: trunk/src/os/unix/ngx_process_cycle.c
===================================================================
--- trunk/src/os/unix/ngx_process_cycle.c 2012-06-18 14:09:54 UTC (rev 4691)
+++ trunk/src/os/unix/ngx_process_cycle.c 2012-06-18 14:10:50 UTC (rev 4692)
@@ -711,6 +711,8 @@
ngx_exit_log.file = &ngx_exit_log_file;

ngx_exit_cycle.log = &ngx_exit_log;
+ ngx_exit_cycle.files = ngx_cycle->files;
+ ngx_exit_cycle.files_n = ngx_cycle->files_n;
ngx_cycle = &ngx_exit_cycle;

ngx_destroy_pool(cycle->pool);
@@ -1054,6 +1056,8 @@
ngx_exit_log.file = &ngx_exit_log_file;

ngx_exit_cycle.log = &ngx_exit_log;
+ ngx_exit_cycle.files = ngx_cycle->files;
+ ngx_exit_cycle.files_n = ngx_cycle->files_n;
ngx_cycle = &ngx_exit_cycle;

ngx_destroy_pool(cycle->pool);

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] svn commit: r4692 - trunk/src/os/unix

Anonymous User 813 June 18, 2012 10:12AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 178
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready