Skip to content

Commit

Permalink
fix(proxy-wasm) always unset instance ctx filter chain
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultcha committed Jun 23, 2023
1 parent f952352 commit 1ed6e0d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/common/proxy_wasm/ngx_proxy_wasm.c
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,8 @@ ngx_proxy_wasm_run_step(ngx_proxy_wasm_exec_t *pwexec,
default:
ngx_proxy_wasm_log_error(NGX_LOG_WASM_NYI, pwexec->log, 0,
"NYI - proxy_wasm step: %d", step);
return NGX_ERROR;
rc = NGX_ERROR;
break;
}

switch (rc) {
Expand All @@ -649,10 +650,14 @@ ngx_proxy_wasm_run_step(ngx_proxy_wasm_exec_t *pwexec,
case NGX_OK:
pwexec->ecode = NGX_PROXY_WASM_ERR_NONE;
break;
default:
break;
}

done:

ictx->pwexec = NULL;

return pwexec->ecode;
}

Expand Down

0 comments on commit 1ed6e0d

Please sign in to comment.