summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorZhidao HONG <z.hong@f5.com>2022-02-14 20:14:03 +0800
committerZhidao HONG <z.hong@f5.com>2022-02-14 20:14:03 +0800
commit4fcfb9d5fb2b1bfbb3bd87a8617d293cbf2f4ddf (patch)
treebc01cc0f895f5a85c6c96293e848ca2fac4ec69f
parentbf6282b16ca192ace20b35711ed9b8a8014e63d4 (diff)
downloadunit-4fcfb9d5fb2b1bfbb3bd87a8617d293cbf2f4ddf.tar.gz
unit-4fcfb9d5fb2b1bfbb3bd87a8617d293cbf2f4ddf.tar.bz2
Certificates: fixed crash when reallocating chain.
-rw-r--r--docs/changes.xml7
-rw-r--r--src/nxt_cert.c1
2 files changed, 7 insertions, 1 deletions
diff --git a/docs/changes.xml b/docs/changes.xml
index a6b1178d..3ef1ac3f 100644
--- a/docs/changes.xml
+++ b/docs/changes.xml
@@ -33,6 +33,13 @@ NGINX Unit updated to 1.27.0.
<change type="bugfix">
<para>
+the controller process could crash when a chain with more than 4
+certificates was uploaded.
+</para>
+</change>
+
+<change type="bugfix">
+<para>
some Perl applications failed to process the request body, notably with Plack.
</para>
</change>
diff --git a/src/nxt_cert.c b/src/nxt_cert.c
index 01d413e0..4a1f1496 100644
--- a/src/nxt_cert.c
+++ b/src/nxt_cert.c
@@ -241,7 +241,6 @@ nxt_cert_bio(nxt_task_t *task, BIO *bio)
goto fail;
}
- nxt_free(cert);
cert = new_cert;
}