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 24, 2023
1 parent e70c442 commit 6f0f52d
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 6f0f52d

Please sign in to comment.