Skip to content

Commit 2f27064

Browse files
committed
bugfix: fixed file cache key size allocation.
Fix #1572
1 parent 6b3822b commit 2f27064

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngx_http_lua_cache.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ ngx_http_lua_gen_file_cache_key(ngx_conf_t *cf, const u_char *src,
392392
{
393393
u_char *out;
394394

395-
out = ngx_palloc(cf->pool, NGX_HTTP_LUA_FILE_TAG_LEN + 1);
395+
out = ngx_palloc(cf->pool, NGX_HTTP_LUA_FILE_KEY_LEN + 1);
396396
if (out == NULL) {
397397
return NULL;
398398
}

0 commit comments

Comments
 (0)