]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
libssh: unstick SFTP transfers when done event-based
authorDaniel Stenberg <daniel@haxx.se>
Mon, 21 Mar 2022 16:39:49 +0000 (17:39 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 21 Mar 2022 16:41:20 +0000 (17:41 +0100)
Test 604 and 606 (at least).

Closes #8490

lib/vssh/libssh.c

index 957b938fc881b767c4e7abbafd80b086e19b7cbf..ebe04a5f65718cd75e7584b5550d1be98ef28024 100644 (file)
@@ -2063,6 +2063,9 @@ static int myssh_getsock(struct Curl_easy *data,
   if(conn->waitfor & KEEP_SEND)
     bitmap |= GETSOCK_WRITESOCK(FIRSTSOCKET);
 
+  if(!conn->waitfor)
+    bitmap |= GETSOCK_WRITESOCK(FIRSTSOCKET);
+
   return bitmap;
 }