From 66532035178723175ad9522201440372316dc914 Mon Sep 17 00:00:00 2001 From: zhongtao Date: Mon, 6 Mar 2023 17:54:55 +0800 Subject: [PATCH 37/53] change goto branch Signed-off-by: zhongtao --- src/daemon/executor/container_cb/execution_stream.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/daemon/executor/container_cb/execution_stream.c b/src/daemon/executor/container_cb/execution_stream.c index 1a7353b5..7e928cf7 100644 --- a/src/daemon/executor/container_cb/execution_stream.c +++ b/src/daemon/executor/container_cb/execution_stream.c @@ -161,7 +161,8 @@ static int container_exec_cb(const container_exec_request *request, container_ex if (exec_container(cont, request, *response, stdinfd, stdout_handler, stderr_handler) != 0) { ret = -1; - goto pack_err_response; + // pack err response in exec_container, there is no need to pack here. + goto out; } goto out; -- 2.25.1