Commit 78aff58
authored
bugfix: sslhandshake lost verify error when handshake completed immediately (#2506)
After ngx_ssl_handshake(c) returns NGX_OK, the handshake handler may
still record a verify error in u->error_ret via SSL_get_verify_result().
The old code only checked rc == NGX_ERROR and missed u->error_ret,
returning FFI_OK with an unread error. Added u->error_ret != NULL check
so the Lua caller receives the SSL error instead of a misleading "closed"
on the next socket operation.1 parent 4b21d8f commit 78aff58
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2035 | 2035 | | |
2036 | 2036 | | |
2037 | 2037 | | |
2038 | | - | |
| 2038 | + | |
2039 | 2039 | | |
2040 | 2040 | | |
2041 | 2041 | | |
| |||
0 commit comments