Welcome! Log In Create A New Profile

Advanced

[nginx] Leave chain in ngx_chain_add_copy() in consistent state on errors.

Sergey Kandaurov
June 04, 2018 12:02PM
details: http://hg.nginx.org/nginx/rev/da9941c9b01b
branches:
changeset: 7282:da9941c9b01b
user: Sergey Kandaurov <pluknet@nginx.com>
date: Mon Jun 04 18:47:54 2018 +0300
description:
Leave chain in ngx_chain_add_copy() in consistent state on errors.

diffstat:

src/core/ngx_buf.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r bd6563e81cea -r da9941c9b01b src/core/ngx_buf.c
--- a/src/core/ngx_buf.c Wed May 30 15:40:34 2018 +0300
+++ b/src/core/ngx_buf.c Mon Jun 04 18:47:54 2018 +0300
@@ -137,6 +137,7 @@ ngx_chain_add_copy(ngx_pool_t *pool, ngx
while (in) {
cl = ngx_alloc_chain_link(pool);
if (cl == NULL) {
+ *ll = NULL;
return NGX_ERROR;
}

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Leave chain in ngx_chain_add_copy() in consistent state on errors.

Sergey Kandaurov 414 June 04, 2018 12:02PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 273
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready