From d8a7295bc046d9ec77b294b63a19622bb2b1f091 Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Tue, 22 Oct 2019 19:22:02 -0700 Subject: [PATCH] correct accounting of xfrout message length --- lib/ns/xfrout.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/ns/xfrout.c b/lib/ns/xfrout.c index 093fafcd39..516edfa7b7 100644 --- a/lib/ns/xfrout.c +++ b/lib/ns/xfrout.c @@ -1548,15 +1548,15 @@ sendstream(xfrout_ctx_t *xfr) { cleanup_cctx = false; isc_buffer_usedregion(&xfr->txbuf, &used); + xfrout_log(xfr, ISC_LOG_DEBUG(8), "sending TCP message of %d bytes", used.length); - CHECK(isc_nm_send(xfr->client->handle, - &used, - xfrout_senddone, - xfr)); + + CHECK(isc_nm_send(xfr->client->handle, &used, + xfrout_senddone, xfr)); xfr->sends++; - xfr->cbytes = used.length+2; + xfr->cbytes = used.length; } else { xfrout_log(xfr, ISC_LOG_DEBUG(8), "sending IXFR UDP response"); ns_client_send(xfr->client);