Skip to content

Commit

Permalink
Fixes skupperproject#1376: Added connection check in handle_connectio…
Browse files Browse the repository at this point in the history
…n_event to prevent segmentation fault (skupperproject#1377)
  • Loading branch information
ganeshmurthy authored Jan 9, 2024
1 parent 7d75af6 commit a05d50e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/adaptors/http2/http2_adaptor.c
Original file line number Diff line number Diff line change
Expand Up @@ -3210,6 +3210,9 @@ static void encrypt_outgoing_tls(qdr_http2_connection_t *conn, qd_adaptor_buffer
static void handle_connection_event(pn_event_t *e, qd_server_t *qd_server, void *context)
{
qdr_http2_connection_t *conn = (qdr_http2_connection_t *) context;

if (!conn) return;

CHECK_PROACTOR_RAW_CONNECTION(conn->pn_raw_conn);

switch (pn_event_type(e)) {
Expand Down

0 comments on commit a05d50e

Please sign in to comment.