send_existing: clear olen when the data is sent off
Этот коммит содержится в:
родитель
d674b1a09a
Коммит
c49061e708
@ -643,6 +643,7 @@ send_existing(LIBSSH2_SESSION * session, unsigned char *data,
|
|||||||
if (rc == length) {
|
if (rc == length) {
|
||||||
/* the remainder of the package was sent */
|
/* the remainder of the package was sent */
|
||||||
p->ototal_num = 0;
|
p->ototal_num = 0;
|
||||||
|
p->olen = 0;
|
||||||
}
|
}
|
||||||
else if (rc < 0) {
|
else if (rc < 0) {
|
||||||
/* nothing was sent */
|
/* nothing was sent */
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user