Welcome! Log In Create A New Profile

Advanced

[nginx] Resolver: fixed possible use-after-free in worker on fast shutdown.

December 15, 2016 02:02PM
details: http://hg.nginx.org/nginx/rev/a3dc657f4e95
branches:
changeset: 6843:a3dc657f4e95
user: Ruslan Ermilov <ru@nginx.com>
date: Thu Dec 15 21:44:34 2016 +0300
description:
Resolver: fixed possible use-after-free in worker on fast shutdown.

diffstat:

src/core/ngx_resolver.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r 25d0d6dabe00 -r a3dc657f4e95 src/core/ngx_resolver.c
--- a/src/core/ngx_resolver.c Thu Dec 15 19:00:23 2016 +0300
+++ b/src/core/ngx_resolver.c Thu Dec 15 21:44:34 2016 +0300
@@ -300,6 +300,10 @@ ngx_resolver_cleanup(void *data)
#endif

if (r->event) {
+ if (r->event->timer_set) {
+ ngx_del_timer(r->event);
+ }
+
ngx_free(r->event);
}

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

[nginx] Resolver: fixed possible use-after-free in worker on fast shutdown.

ru@nginx.com 551 December 15, 2016 02:02PM



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

Online Users

Guests: 68
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready