Skip to content

Commit cc7f2e8

Browse files
authored
*extensions != NULL
1 parent 89d791d commit cc7f2e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngx_http_lua_ssl_client_helloby.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ ngx_http_lua_ffi_ssl_get_client_hello_ext_present(ngx_http_request_t *r,
692692
}
693693

694694
*extensions = ngx_palloc(r->pool, sizeof(int) * ext_len);
695-
if (extensions != NULL) {
695+
if (*extensions != NULL) {
696696
ngx_memcpy(*extensions, ext_out, sizeof(int) * ext_len);
697697
*extensions_len = ext_len;
698698
}

0 commit comments

Comments
 (0)