Skip to content

Commit

Permalink
Merge pull request unbit#2280 from antocuni/master
Browse files Browse the repository at this point in the history
fix segfaults when using --wsgi-env-behavior=holy.
  • Loading branch information
xrmx authored Feb 1, 2021
2 parents fb22797 + f1b51d9 commit d25c3fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/python/wsgi_subhandler.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ void *uwsgi_request_subhandler_wsgi(struct wsgi_request *wsgi_req, struct uwsgi_

// call
if (PyTuple_GetItem(wsgi_req->async_args, 0) != wsgi_req->async_environ) {
Py_INCREF(wsgi_req->async_environ);
if (PyTuple_SetItem(wsgi_req->async_args, 0, wsgi_req->async_environ)) {
uwsgi_log_verbose("unable to set environ to the python application callable, consider using the holy env allocator\n");
return NULL;
Expand Down

0 comments on commit d25c3fe

Please sign in to comment.