From 279a2e57e58d6c06754c0093b627426970346d41 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sun, 25 Jun 2023 13:22:14 +0000 Subject: [PATCH] example: fix regression in `ssh2_exec.c` Regression from b13936bd6a89993cd3bf4a18317ca5bd84bb08d7 #861 #846. Update a variable name missed above. Reported-by: PewPewPew Fixes #1105 Closes #1106 --- example/ssh2_exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/ssh2_exec.c b/example/ssh2_exec.c index 2627d5cb..f1398c1d 100644 --- a/example/ssh2_exec.c +++ b/example/ssh2_exec.c @@ -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