From f3c778635c28398fd3ed3f322c479525c4a62dab Mon Sep 17 00:00:00 2001 From: tcp9 <41658045@qq.com> Date: Wed, 23 Oct 2019 16:35:58 +0800 Subject: [PATCH] fixed the bug: coredump on nginx quit under debug mode --- src/ngx_stream_upsync_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ngx_stream_upsync_module.c b/src/ngx_stream_upsync_module.c index 59a345a..294a4de 100644 --- a/src/ngx_stream_upsync_module.c +++ b/src/ngx_stream_upsync_module.c @@ -3438,7 +3438,7 @@ ngx_stream_upsync_clear_all_events(ngx_cycle_t *cycle) next != ngx_queue_sentinel(head); next = ngx_queue_next(next)) { - queue_event = ngx_queue_data(next, ngx_delay_event_t, delay_delete_ev); + queue_event = ngx_queue_data(next, ngx_delay_event_t, queue); if (queue_event->delay_delete_ev.timer_set) { ngx_del_timer(&queue_event->delay_delete_ev); }