client session CHANGE properly detect fscanf error
diff --git a/src/session_client_ssh.c b/src/session_client_ssh.c
index 2f70695..400e9df 100644
--- a/src/session_client_ssh.c
+++ b/src/session_client_ssh.c
@@ -291,7 +291,7 @@
 
         do {
             if (fscanf(stdin, "%4s", answer) == EOF) {
-                ERR("fscanf() failed (%s).", strerror(errno));
+                ERR("fscanf() failed (%s).", ferror(stdin) ? strerror(errno) : "EOF");
                 goto fail;
             }
             while (((c = getchar()) != EOF) && (c != '\n'));