Mercurial > hg > nginx-vendor-0-5
comparison src/core/ngx_file.c @ 318:3021f899881a NGINX_0_5_29
nginx 0.5.29
*) Feature: $nginx_version variable.
Thanks to Nick S. Grechukh.
*) Bugfix: if the FastCGI header was split in records, then nginx
passed garbage in the header to a client.
*) Bugfix: Sun Studio compatibility on Solaris/amd64 and
Solaris/sparc64.
Thanks to Jiang Hong and Andrei Nigmatulin.
*) Bugfix: of minor potential bugs.
Thanks to Coverity's Scan.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 23 Jul 2007 00:00:00 +0400 |
parents | 675a39fd14cd |
children | 56675f002600 |
comparison
equal
deleted
inserted
replaced
317:c012154f05d1 | 318:3021f899881a |
---|---|
454 if (ctx->init_handler(data, prev) == NGX_ABORT) { | 454 if (ctx->init_handler(data, prev) == NGX_ABORT) { |
455 goto failed; | 455 goto failed; |
456 } | 456 } |
457 | 457 |
458 ctx->data = data; | 458 ctx->data = data; |
459 | |
460 } else { | |
461 data = NULL; | |
459 } | 462 } |
460 | 463 |
461 for ( ;; ) { | 464 for ( ;; ) { |
462 | 465 |
463 ngx_set_errno(0); | 466 ngx_set_errno(0); |
579 | 582 |
580 if (buf.len) { | 583 if (buf.len) { |
581 ngx_free(buf.data); | 584 ngx_free(buf.data); |
582 } | 585 } |
583 | 586 |
584 if (ctx->alloc) { | 587 if (data) { |
585 ngx_free(ctx->data); | 588 ngx_free(data); |
586 ctx->data = prev; | 589 ctx->data = prev; |
587 } | 590 } |
588 | 591 |
589 if (ngx_close_dir(&dir) == NGX_ERROR) { | 592 if (ngx_close_dir(&dir) == NGX_ERROR) { |
590 ngx_log_error(NGX_LOG_CRIT, ctx->log, ngx_errno, | 593 ngx_log_error(NGX_LOG_CRIT, ctx->log, ngx_errno, |