Commit 90fb633
authored
bugfix: stream cosocket getsslctx() bound to wrong FFI symbol.
The stream branch in lib/resty/core/socket.lua bound
ngx_lua_ffi_socket_getsslctx to ngx_stream_lua_ffi_socket_tcp_get_ssl_pointer
(a copy/paste of the getsslpointer block above). As a result,
stream cosocket:getsslctx() returned an SSL* while callers used it as
SSL_CTX*, leading to undefined behavior. Bind to
ngx_stream_lua_ffi_socket_tcp_get_ssl_ctx instead, matching the http branch.1 parent 1c5796e commit 90fb633
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| |||
0 commit comments