]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Restore functionality mistakenly removed in the previous commit
authorJames Housley <jim@thehousleys.net>
Wed, 13 Jun 2007 17:13:44 +0000 (17:13 +0000)
committerJames Housley <jim@thehousleys.net>
Wed, 13 Jun 2007 17:13:44 +0000 (17:13 +0000)
lib/ssh.c

index 23a1d3bda45b4d62b942f8b186619c529422e81c..e7935ad243e5de4ea90404e058b0041f61480dff 100644 (file)
--- a/lib/ssh.c
+++ b/lib/ssh.c
@@ -651,7 +651,10 @@ static CURLcode ssh_statemach_act(struct connectdata *conn)
       break;
 
     case SSH_SESSION_FREE:
-      libssh2_session_free(ssh->ssh_session);
+      rc = libssh2_session_free(ssh->ssh_session);
+      if (rc == LIBSSH2_ERROR_EAGAIN) {
+        break;
+      }
       ssh->ssh_session = NULL;
       state(conn, SSH_STOP);
       result = sshc->actualCode;