Welcome! Log In Create A New Profile

Advanced

[nginx] Fixed incorrect ngx_str_set() usage, broken in c82b2e020...

Maxim Dounin
December 07, 2013 08:30AM
details: http://hg.nginx.org/nginx/rev/58716fd3bd2d
branches:
changeset: 5462:58716fd3bd2d
user: Piotr Sikora <piotr@cloudflare.com>
date: Fri Dec 06 16:00:49 2013 -0800
description:
Fixed incorrect ngx_str_set() usage, broken in c82b2e020b9f.

Found by Coverity Scan CID 1135525.

Signed-off-by: Piotr Sikora <piotr@cloudflare.com>

diffstat:

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

diffs (12 lines):

diff --git a/src/http/modules/ngx_http_uwsgi_module.c b/src/http/modules/ngx_http_uwsgi_module.c
--- a/src/http/modules/ngx_http_uwsgi_module.c
+++ b/src/http/modules/ngx_http_uwsgi_module.c
@@ -603,7 +603,7 @@ ngx_http_uwsgi_eval(ngx_http_request_t *
url.url.len -= add;

} else {
- ngx_str_set(&u->schema, (u_char *) "uwsgi://");
+ ngx_str_set(&u->schema, "uwsgi://");
}

url.no_resolve = 1;

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

[nginx] Fixed incorrect ngx_str_set() usage, broken in c82b2e020...

Maxim Dounin 694 December 07, 2013 08:30AM



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

Online Users

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