From 5c6107570a62662beb7b5c175550de9ea9e3edad Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 16 Apr 2025 15:37:07 +0000 Subject: [PATCH] xfer: Clear the overflow buffer after the segment could be sent This is a stub and I will replace the send and receive buffers with our own buffer implementation. Signed-off-by: Michael Tremer --- src/pakfire/xfer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pakfire/xfer.c b/src/pakfire/xfer.c index b9ae2d16..e851d565 100644 --- a/src/pakfire/xfer.c +++ b/src/pakfire/xfer.c @@ -1732,6 +1732,8 @@ int pakfire_xfer_send_message(struct pakfire_xfer* self, ERROR(self->ctx, "Failed to send previous fragment: %s\n", strerror(-r)); return r; } + + self->send_buffer.length = 0; } // Send the actual message -- 2.39.5