]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
xdp-quic: bugfix: handling and cleanup of quic relay pointer
authorLibor Peltan <libor.peltan@nic.cz>
Wed, 3 Aug 2022 13:13:33 +0000 (15:13 +0200)
committerDaniel Salzman <daniel.salzman@nic.cz>
Wed, 3 Aug 2022 15:53:00 +0000 (17:53 +0200)
src/knot/server/xdp-handler.c

index 7ed04a2d9c55290b803238737e84fb6ac51f14c1..1bd42a94a8514cb0e7dd0be9511de34acb0e0297 100644 (file)
@@ -364,6 +364,7 @@ static void handle_quic(xdp_handle_ctx_t *ctx, knot_layer_t *layer,
 
        for (uint32_t i = 0; i < ctx->msg_recv_count; i++) {
                knot_xdp_msg_t *msg_recv = &ctx->msg_recv[i];
+               ctx->quic_relays[i] = NULL;
 
                if ((msg_recv->flags & KNOT_XDP_MSG_TCP) ||
                    msg_recv->ip_to.sin6_port != ctx->quic_port ||