Skip to content

Commit

Permalink
bugfix: fixed file cache key size allocation.
Browse files Browse the repository at this point in the history
Fix #1572
  • Loading branch information
thibaultcha committed Aug 5, 2019
1 parent 6b3822b commit 2f27064
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ngx_http_lua_cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ ngx_http_lua_gen_file_cache_key(ngx_conf_t *cf, const u_char *src,
{
u_char *out;

out = ngx_palloc(cf->pool, NGX_HTTP_LUA_FILE_TAG_LEN + 1);
out = ngx_palloc(cf->pool, NGX_HTTP_LUA_FILE_KEY_LEN + 1);
if (out == NULL) {
return NULL;
}
Expand Down

0 comments on commit 2f27064

Please sign in to comment.