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 aaa34e0a64
commit 1c0436d644
2 changed files with 33 additions and 4 deletions

View File

@@ -31,6 +31,13 @@ NGINX Unit updated to 1.26.1.
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>