scp_write_nonblock.c: remove pointless check
libssh2_channel_write() cannot return a value that is larger than the input length value
This commit is contained in:
parent
aa07cdee9a
commit
0b0aa209f6
@ -235,9 +235,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
else {
|
||||
prev = nread;
|
||||
if(rc > nread) {
|
||||
fprintf(stderr, "MOO %d > %d\n", (int)rc, (int)nread);
|
||||
}
|
||||
|
||||
/* rc indicates how many bytes were written this time */
|
||||
nread -= rc;
|
||||
ptr += rc;
|
||||
|
Loading…
Reference in New Issue
Block a user