Welcome! Log In Create A New Profile

Advanced

[nginx] Fixed debug logging in ngx_http_parse_complex_uri().

Maxim Dounin
June 05, 2013 12:12PM
details: http://hg.nginx.org/nginx/rev/55dc535ae5dc
branches:
changeset: 5247:55dc535ae5dc
user: Maxim Dounin <mdounin@mdounin.ru>
date: Wed Jun 05 19:45:08 2013 +0400
description:
Fixed debug logging in ngx_http_parse_complex_uri().

The *u previously logged isn't yet initialized at this point, and
Valgrind complains.

diffstat:

src/http/ngx_http_parse.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c
--- a/src/http/ngx_http_parse.c
+++ b/src/http/ngx_http_parse.c
@@ -1256,8 +1256,8 @@ ngx_http_parse_complex_uri(ngx_http_requ
* the line feed
*/

- ngx_log_debug4(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
- "s:%d in:'%Xd:%c', out:'%c'", state, ch, ch, *u);
+ ngx_log_debug3(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
+ "s:%d in:'%Xd:%c'", state, ch, ch);

switch (state) {


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

[nginx] Fixed debug logging in ngx_http_parse_complex_uri().

Maxim Dounin 588 June 05, 2013 12:12PM



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

Online Users

Guests: 143
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