]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
kdig: fix of unsent data in case of incomplete previous communication
authorJan Hák <jan.hak@nic.cz>
Wed, 2 Nov 2022 14:13:19 +0000 (15:13 +0100)
committerDaniel Salzman <daniel.salzman@nic.cz>
Thu, 10 Nov 2022 19:03:54 +0000 (20:03 +0100)
src/utils/common/quic.c

index 3ed7721ef1d3c34b1ea4cc6f708d90f6f3102562..f73b8c4e048d38a573ec40ef8543370c89aad7ae 100644 (file)
@@ -714,8 +714,10 @@ int quic_send_dns_query(quic_ctx_t *ctx, int sockfd, struct addrinfo *srv,
                        WARN("QUIC, failed to send");
                        return ret;
                }
-               pdatav = NULL;
-               datavlen = 0;
+               if (ctx->stream.out_ack > 0) {
+                       pdatav = NULL;
+                       datavlen = 0;
+               }
 
                const ngtcp2_transport_params *pp =
                        ngtcp2_conn_get_remote_transport_params(ctx->conn);