Certificates: fixed crash when reallocating chain.

This commit is contained in:
Zhidao HONG
2022-02-14 20:14:03 +08:00
parent bf6282b16c
commit 4fcfb9d5fb
2 changed files with 7 additions and 1 deletions

View File

@@ -31,6 +31,13 @@ NGINX Unit updated to 1.27.0.
date="" time="" date="" time=""
packager="Andrei Belov <defan@nginx.com>"> packager="Andrei Belov <defan@nginx.com>">
<change type="bugfix">
<para>
the controller process could crash when a chain with more than 4
certificates was uploaded.
</para>
</change>
<change type="bugfix"> <change type="bugfix">
<para> <para>
some Perl applications failed to process the request body, notably with Plack. some Perl applications failed to process the request body, notably with Plack.

View File

@@ -241,7 +241,6 @@ nxt_cert_bio(nxt_task_t *task, BIO *bio)
goto fail; goto fail;
} }
nxt_free(cert);
cert = new_cert; cert = new_cert;
} }