Skip to content

Commit

Permalink
bugfix: return NGX_OK in ngx_http_lua_ffi_exit when in NGX_HTTP_LUA_C…
Browse files Browse the repository at this point in the history
…ONTEXT_SSL_PSK.
  • Loading branch information
Tuure Vartiainen committed Oct 6, 2017
1 parent 99691c5 commit b8d9f06
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ngx_http_lua_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,7 @@ ngx_http_lua_ffi_exit(ngx_http_request_t *r, int status, u_char *err,
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
"lua exit with code %d", status);

if (ctx->context == NGX_HTTP_LUA_CONTEXT_SSL_SESS_STORE
|| ctx->context == NGX_HTTP_LUA_CONTEXT_SSL_PSK) {
if (ctx->context == NGX_HTTP_LUA_CONTEXT_SSL_SESS_STORE) {
return NGX_DONE;
}

Expand Down

0 comments on commit b8d9f06

Please sign in to comment.