aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_files.c
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2020-06-15 20:17:16 +0300
committerRoman Arutyunyan <arut@nginx.com>2020-06-15 20:17:16 +0300
commit7547581bbcb7b737710f9141260d822a08685b83 (patch)
tree13e4f40768d06e8e960803f52031273cf4b68867 /src/os/unix/ngx_files.c
parent2afc050bd0e59d1ae5391c962e4c6c83120e8ebf (diff)
downloadnginx-7547581bbcb7b737710f9141260d822a08685b83.tar.gz
nginx-7547581bbcb7b737710f9141260d822a08685b83.zip
OCSP: fixed use-after-free on error.
When validating second and further certificates, ssl callback could be called twice to report the error. After the first call client connection is terminated and its memory is released. Prior to the second call and in it released connection memory is accessed. Errors triggering this behavior: - failure to create the request - failure to start resolving OCSP responder name - failure to start connecting to the OCSP responder The fix is to rearrange the code to eliminate the second call.
Diffstat (limited to 'src/os/unix/ngx_files.c')
0 files changed, 0 insertions, 0 deletions