send_existing: don't tell parent to return when drained
That will just cause unnecessary code execution.
This commit is contained in:
parent
030b2d9b60
commit
dec0ea9e70
@ -644,6 +644,9 @@ send_existing(LIBSSH2_SESSION *session, const unsigned char *data,
|
||||
/* the remainder of the package was sent */
|
||||
p->ototal_num = 0;
|
||||
p->olen = 0;
|
||||
*ret = 0; /* don't return */
|
||||
return LIBSSH2_ERROR_NONE;
|
||||
|
||||
}
|
||||
else if (rc < 0) {
|
||||
/* nothing was sent */
|
||||
|
Loading…
Reference in New Issue
Block a user