Skip to content

Commit b2ee29e

Browse files
author
Tuure Vartiainen
committed
bugfix: use correct memory pool for ngx_palloc in ngx_http_lua_ffi_ssl_set_psk_key
1 parent 2869059 commit b2ee29e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngx_http_lua_ssl_pskby.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ ngx_http_lua_ffi_ssl_set_psk_key(ngx_http_request_t *r,
613613
return NGX_ERROR;
614614
}
615615

616-
buf = ngx_palloc(r->pool, len);
616+
buf = ngx_palloc(cctx->connection->pool, len);
617617
if (buf == NULL) {
618618
*err = "unable to alloc memory for buffer";
619619
return NGX_ERROR;

0 commit comments

Comments
 (0)