From 4fcfb9d5fb2b1bfbb3bd87a8617d293cbf2f4ddf Mon Sep 17 00:00:00 2001 From: Zhidao HONG Date: Mon, 14 Feb 2022 20:14:03 +0800 Subject: [PATCH] Certificates: fixed crash when reallocating chain. --- docs/changes.xml | 7 +++++++ src/nxt_cert.c | 1 - 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/changes.xml b/docs/changes.xml index a6b1178d..3ef1ac3f 100644 --- a/docs/changes.xml +++ b/docs/changes.xml @@ -31,6 +31,13 @@ NGINX Unit updated to 1.27.0. date="" time="" packager="Andrei Belov <defan@nginx.com>"> + + +the controller process could crash when a chain with more than 4 +certificates was uploaded. + + + some Perl applications failed to process the request body, notably with Plack. 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; }