comparison src/http/ngx_http_cache.c @ 191:71ce40b3c37b

nginx-0.0.1-2003-11-19-19:26:41 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 19 Nov 2003 16:26:41 +0000
parents 02a715e85df1
children 8dee38ea9117
comparison
equal deleted inserted replaced
190:02a715e85df1 191:71ce40b3c37b
105 ctx->expires = h->expires; 105 ctx->expires = h->expires;
106 ctx->last_modified= h->last_modified; 106 ctx->last_modified= h->last_modified;
107 ctx->date = h->date; 107 ctx->date = h->date;
108 ctx->length = h->length; 108 ctx->length = h->length;
109 109
110 if (h->key_len > (size_t) (ctx->buf->last - ctx->buf->pos)) { 110 if (h->key_len > (size_t) (ctx->buf->end - ctx->buf->pos)) {
111 ngx_log_error(NGX_LOG_ALERT, ctx->log, 0, 111 ngx_log_error(NGX_LOG_ALERT, ctx->log, 0,
112 "cache file \"%s\" is probably invalid", 112 "cache file \"%s\" is probably invalid",
113 ctx->file.name.data); 113 ctx->file.name.data);
114 return NGX_DECLINED; 114 return NGX_DECLINED;
115 } 115 }