From: Libor Peltan Date: Fri, 18 Aug 2023 09:50:28 +0000 (+0200) Subject: quic/handler: bugfix: skip processing if no connection X-Git-Tag: v3.4.0~271^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9fd617f37f200e5aa932b56ef91da4dd00f308f;p=thirdparty%2Fknot-dns.git quic/handler: bugfix: skip processing if no connection --- diff --git a/src/knot/server/quic-handler.c b/src/knot/server/quic-handler.c index 57a3856da5..9526dc299f 100644 --- a/src/knot/server/quic-handler.c +++ b/src/knot/server/quic-handler.c @@ -84,11 +84,13 @@ void quic_handler(knotd_qdata_params_t *params, knot_layer_t *layer, knot_quic_conn_t *conn = NULL; (void)knot_quic_handle(table, &rpl, idle_close, &conn); - handle_quic_streams(conn, params, layer, NULL); + if (conn != NULL) { + handle_quic_streams(conn, params, layer, NULL); - (void)knot_quic_send(table, conn, &rpl, QUIC_MAX_SEND_PER_RECV, 0); + (void)knot_quic_send(table, conn, &rpl, QUIC_MAX_SEND_PER_RECV, 0); - knot_quic_cleanup(&conn, 1); + knot_quic_cleanup(&conn, 1); + } } knot_quic_table_t *quic_make_table(struct server *server)