mirror of
https://github.com/nginx/nginx.git
synced 2024-12-02 05:29:14 -06:00
fix segfault
This commit is contained in:
parent
ea2f6af9d0
commit
17b0e8722a
@ -387,7 +387,10 @@ request_body(r)
|
||||
|
||||
ngx_http_perl_set_request(r);
|
||||
|
||||
if (r->request_body->temp_file || r->request_body->bufs == NULL) {
|
||||
if (r->request_body == NULL
|
||||
|| r->request_body->temp_file
|
||||
|| r->request_body->bufs == NULL)
|
||||
{
|
||||
XSRETURN_UNDEF;
|
||||
}
|
||||
|
||||
@ -411,7 +414,7 @@ request_body_file(r)
|
||||
|
||||
ngx_http_perl_set_request(r);
|
||||
|
||||
if (r->request_body->temp_file == NULL) {
|
||||
if (r->request_body == NULL || r->request_body->temp_file == NULL) {
|
||||
XSRETURN_UNDEF;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user