mirror of
https://github.com/libssh2/libssh2.git
synced 2025-07-31 00:03:08 +03:00
example: fix regression in ssh2_exec.c
Regression from b13936bd6a
#861 #846.
Update a variable name missed above.
Reported-by: PewPewPew
Fixes #1105
Closes #1106
This commit is contained in:
@ -260,7 +260,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
/* this is due to blocking that would occur otherwise so we loop on
|
/* this is due to blocking that would occur otherwise so we loop on
|
||||||
this condition */
|
this condition */
|
||||||
if(rc == LIBSSH2_ERROR_EAGAIN) {
|
if(nread == LIBSSH2_ERROR_EAGAIN) {
|
||||||
waitsocket(sock, session);
|
waitsocket(sock, session);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user