Fixing access_log structure reference counting.

The reference to the access_log structure is stored in the current
nxt_router_conf_t and the global nxt_router_t.  When the reference is copied,
the reference counter should be adjusted accordingly.

This closes #593 issue on GitHub.
This commit is contained in:
Max Romanov
2021-11-25 16:58:43 +03:00
parent 2bc9599057
commit 0af5f6ddb4
2 changed files with 33 additions and 4 deletions

View File

@@ -31,6 +31,13 @@ NGINX Unit updated to 1.27.0.
date="" time=""
packager="Andrei Belov <defan@nginx.com>">
<change type="bugfix">
<para>
the router process crash on reconfiguration if "access_log" was configured
without listeners.
</para>
</change>
</changes>