mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-04 20:51:29 +00:00
plugins/python: don't copy router_name in py_uwsgi_route
No need to create a news string since uwsgi_route_api_func use it for just a strcmp. Reported by Coverity as CID #989251.
This commit is contained in:
@@ -717,7 +717,7 @@ static PyObject *py_uwsgi_route(PyObject * self, PyObject * args) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int ret = uwsgi_route_api_func(wsgi_req, uwsgi_str(router_name), uwsgi_str(router_args));
|
||||
int ret = uwsgi_route_api_func(wsgi_req, router_name, uwsgi_str(router_args));
|
||||
return PyInt_FromLong(ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user