From: Jan Hák Date: Wed, 2 Nov 2022 14:13:19 +0000 (+0100) Subject: kdig: fix of unsent data in case of incomplete previous communication X-Git-Tag: v3.4.dev~320 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5dd43bfbc1c9a1585ce90c6a81f9e421c19f101d;p=thirdparty%2Fknot-dns.git kdig: fix of unsent data in case of incomplete previous communication --- diff --git a/src/utils/common/quic.c b/src/utils/common/quic.c index 3ed7721ef1..f73b8c4e04 100644 --- a/src/utils/common/quic.c +++ b/src/utils/common/quic.c @@ -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);