This is an automated email from the ASF dual-hosted git repository. gmurthy pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git
The following commit(s) were added to refs/heads/main by this push: new 633f080 DISPATCH-2056: Set the connection context to zero before freeing qdr_connection. This closes #1202. 633f080 is described below commit 633f0802f9075879cba35997039ec1b587a94f54 Author: Ganesh Murthy <gmur...@apache.org> AuthorDate: Fri May 7 16:52:29 2021 -0400 DISPATCH-2056: Set the connection context to zero before freeing qdr_connection. This closes #1202. --- src/adaptors/http2/http2_adaptor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adaptors/http2/http2_adaptor.c b/src/adaptors/http2/http2_adaptor.c index ed68974..8fad9db 100644 --- a/src/adaptors/http2/http2_adaptor.c +++ b/src/adaptors/http2/http2_adaptor.c @@ -2128,8 +2128,8 @@ static void qdr_del_http2_connection_CT(qdr_core_t *core, qdr_action_t *action, static void close_connections(qdr_http2_connection_t* conn) { + qdr_connection_set_context(conn->qdr_conn, 0); qdr_connection_closed(conn->qdr_conn); - qdr_connection_set_context(conn->qdr_conn, 0); conn->qdr_conn = 0; qdr_action_t *action = qdr_action(qdr_del_http2_connection_CT, "delete_http2_connection"); action->args.general.context_1 = conn; --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org