send_existing: don't tell parent to return when drained

That will just cause unnecessary code execution.
This commit is contained in:
Daniel Stenberg 2010-10-23 00:47:51 +02:00
parent 030b2d9b60
commit dec0ea9e70

View File

@ -644,6 +644,9 @@ send_existing(LIBSSH2_SESSION *session, const unsigned char *data,
/* 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; p->olen = 0;
*ret = 0; /* don't return */
return LIBSSH2_ERROR_NONE;
} }
else if (rc < 0) { else if (rc < 0) {
/* nothing was sent */ /* nothing was sent */