|
@@ -641,7 +641,12 @@ send_existing(LIBSSH2_SESSION *session, const unsigned char *data, |
|
|
we don't add this one up until the previous one has been sent. To |
|
|
we don't add this one up until the previous one has been sent. To |
|
|
make the caller really notice his/hers flaw, we return error for |
|
|
make the caller really notice his/hers flaw, we return error for |
|
|
this case */ |
|
|
this case */ |
|
|
return LIBSSH2_ERROR_BAD_USE; |
|
|
|
|
|
|
|
|
/* In the non-blocking mode, another channel is waiting, so return |
|
|
|
|
|
_EAGAIN, so the other channel can finish writing. */ |
|
|
|
|
|
if (session->api_block_mode) |
|
|
|
|
|
return LIBSSH2_ERROR_BAD_USE; |
|
|
|
|
|
else |
|
|
|
|
|
return LIBSSH2_ERROR_EAGAIN; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
*ret = 1; /* set to make our parent return */ |
|
|
*ret = 1; /* set to make our parent return */ |
|
|