Skip to content

Commit 6c3f3f0

Browse files
set err message when can not alloc.
1 parent 3a99dad commit 6c3f3f0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ngx_http_lua_ssl_certby.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,6 +1016,7 @@ ngx_http_lua_ffi_ssl_ciphers(ngx_http_request_t *r, char **pciphers,
10161016

10171017
*pciphers = ngx_pnalloc(pool, len);
10181018
if (*pciphers == NULL) {
1019+
*err = "no memory";
10191020
return NGX_ERROR;
10201021
}
10211022

@@ -1053,6 +1054,7 @@ ngx_http_lua_ffi_ssl_ciphers(ngx_http_request_t *r, char **pciphers,
10531054
*cipherslen = ngx_strlen(buf);
10541055
*pciphers = ngx_pnalloc(pool, *cipherslen);
10551056
if (*pciphers == NULL) {
1057+
*err = "no memory";
10561058
return NGX_ERROR;
10571059
}
10581060

0 commit comments

Comments
 (0)