comparison src/http/modules/perl/nginx.xs @ 270:6eb1e38f0f1f NGINX_0_5_5

nginx 0.5.5 *) Change: the -v switch does not show compiler information any more. *) Feature: the -V switch. *) Feature: the "worker_rlimit_core" directive supports size in K, M, and G. *) Bugfix: the nginx.pm module now could be installed by an unprivileged user. *) Bugfix: a segmentation fault might occur if the $r->request_body or $r->request_body_file methods were used. *) Bugfix: the ppc platform specific bugs.
author Igor Sysoev <http://sysoev.ru>
date Sun, 24 Dec 2006 00:00:00 +0300
parents 251bcd11a5b8
children c5c2b2883984
comparison
equal deleted inserted replaced
269:aa9c0062124d 270:6eb1e38f0f1f
385 ngx_http_request_t *r; 385 ngx_http_request_t *r;
386 size_t len; 386 size_t len;
387 387
388 ngx_http_perl_set_request(r); 388 ngx_http_perl_set_request(r);
389 389
390 if (r->request_body->temp_file || r->request_body->bufs == NULL) { 390 if (r->request_body == NULL
391 || r->request_body->temp_file
392 || r->request_body->bufs == NULL)
393 {
391 XSRETURN_UNDEF; 394 XSRETURN_UNDEF;
392 } 395 }
393 396
394 len = r->request_body->bufs->buf->last - r->request_body->bufs->buf->pos; 397 len = r->request_body->bufs->buf->last - r->request_body->bufs->buf->pos;
395 398
409 dXSTARG; 412 dXSTARG;
410 ngx_http_request_t *r; 413 ngx_http_request_t *r;
411 414
412 ngx_http_perl_set_request(r); 415 ngx_http_perl_set_request(r);
413 416
414 if (r->request_body->temp_file == NULL) { 417 if (r->request_body == NULL || r->request_body->temp_file == NULL) {
415 XSRETURN_UNDEF; 418 XSRETURN_UNDEF;
416 } 419 }
417 420
418 ngx_http_perl_set_targ(r->request_body->temp_file->file.name.data, 421 ngx_http_perl_set_targ(r->request_body->temp_file->file.name.data,
419 r->request_body->temp_file->file.name.len, 1); 422 r->request_body->temp_file->file.name.len, 1);