1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-07-29 13:01:14 +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:
Viktor Szakats
2023-06-25 13:22:14 +00:00
parent 766bde9fb9
commit 279a2e57e5

View File

@ -260,7 +260,7 @@ int main(int argc, char *argv[])
/* this is due to blocking that would occur otherwise so we loop on
this condition */
if(rc == LIBSSH2_ERROR_EAGAIN) {
if(nread == LIBSSH2_ERROR_EAGAIN) {
waitsocket(sock, session);
}
else