diff --git a/src/transport.c b/src/transport.c index 6eaae3e..e3ef072 100644 --- a/src/transport.c +++ b/src/transport.c @@ -643,6 +643,7 @@ send_existing(LIBSSH2_SESSION * session, unsigned char *data, if (rc == length) { /* the remainder of the package was sent */ p->ototal_num = 0; + p->olen = 0; } else if (rc < 0) { /* nothing was sent */