Klaus Demo nginx / 7e3041b
Stream: fixed possible use of a freed connection. The session handler may result in session termination, thus a connection pool (from which c->udp was allocated) may be destroyed. Vladimir Homutov 3 years ago
1 changed file(s) with 6 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
260260
261261 rev->handler(rev);
262262
263 c->udp->buffer = NULL;
263 if (c->udp) {
264 c->udp->buffer = NULL;
265 }
266
264267 rev->ready = 0;
265268
266269 goto next;
560563 ngx_connection_t *c = data;
561564
562565 ngx_rbtree_delete(&c->listening->rbtree, &c->udp->node);
566
567 c->udp = NULL;
563568 }
564569
565570