nginx/src
Roman Arutyunyan 7570718594 Resolver: fixed possible use-after-free while resolving SRV.
Resolving an SRV record includes resolving its host names in subrequests.
Previously, if memory allocation failed while reporting a subrequest result
after receiving a response from a DNS server, the SRV resolve handler was
called immediately with the NGX_ERROR state.  However, if the SRV record
included another copy of the resolved name, it was reported once again.
This could trigger the use-after-free memory access after SRV resolve
handler freed the resolve context by calling ngx_resolve_name_done().

Now the SRV resolve handler is called only when all its subrequests are
completed.
2017-07-04 18:07:29 +03:00
..
core Resolver: fixed possible use-after-free while resolving SRV. 2017-07-04 18:07:29 +03:00
event Fixed deferred accept with EPOLLRDHUP enabled (ticket #1278). 2017-05-24 13:17:08 +03:00
http Range filter: allowed ranges on empty files (ticket #1031). 2017-06-27 00:53:46 +03:00
mail Style: changed checks of ngx_ssl_create_connection() to != NGX_OK. 2017-05-29 16:34:35 +03:00
misc Style: fix typo. 2014-07-08 03:03:14 -07:00
os Style. 2017-06-01 16:49:14 +03:00
stream Style: changed checks of ngx_ssl_create_connection() to != NGX_OK. 2017-05-29 16:34:35 +03:00