Fixing multiple TLS-enabled listeners initialization.

Because of the incorrect 'last' field assignment, multiple listeners with
a TLS certificate did not initialize properly, which caused a router crash
while establishing a connection.

Test with multiple TLS listeners added.

The issue was introduced in the c548e46fe516 commit.

This closes #561 issue on GitHub.
This commit is contained in:
Max Romanov
2021-07-01 13:56:40 +03:00
parent c16123e749
commit cfba69781a
3 changed files with 25 additions and 6 deletions

View File

@@ -44,6 +44,13 @@ Initial release of Java 17 module for NGINX Unit.
</para>
</change>
<change type="bugfix">
<para>
the router process could crash on TLS connection open when multiple listeners
with TLS certificate configured; the bug had appeared in 1.23.0.
</para>
</change>
</changes>