[PATCH] Fixed incorrect ngx_str_set() usage, broken in c82b2e020b9f.
Piotr Sikora
piotr at cloudflare.com
Fri Dec 6 23:45:31 UTC 2013
# HG changeset patch
# User Piotr Sikora <piotr at cloudflare.com>
# Date 1386373432 28800
# Fri Dec 06 15:43:52 2013 -0800
# Node ID 2f544de052c59ea14094473a7089e27d661b6bc8
# Parent 1bdf906bba99b4c03d306dd8f2756d4d8ffa4a13
Fixed incorrect ngx_str_set() usage, broken in c82b2e020b9f.
Found by Coverity Scan CID 113525.
Signed-off-by: Piotr Sikora <piotr at cloudflare.com>
diff -r 1bdf906bba99 -r 2f544de052c5 src/http/modules/ngx_http_uwsgi_module.c
--- a/src/http/modules/ngx_http_uwsgi_module.c Fri Dec 06 19:58:27 2013 +0400
+++ b/src/http/modules/ngx_http_uwsgi_module.c Fri Dec 06 15:43:52 2013 -0800
@@ -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;
More information about the nginx-devel
mailing list