summaryrefslogtreecommitdiff
path: root/lib/vssh
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-03-21 17:39:49 +0100
committerDaniel Stenberg <daniel@haxx.se>2022-03-21 17:41:20 +0100
commit59c44c76dee3123ea89f73108a8788ec06cc126a (patch)
treec0eec6270d6e270bafb17faeaacc24f9a819e008 /lib/vssh
parent5bb4d3ec0667453005512df87832d8dbd85ce417 (diff)
downloadcurl-59c44c76dee3123ea89f73108a8788ec06cc126a.tar.gz
libssh: unstick SFTP transfers when done event-based
Test 604 and 606 (at least). Closes #8490
Diffstat (limited to 'lib/vssh')
-rw-r--r--lib/vssh/libssh.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/vssh/libssh.c b/lib/vssh/libssh.c
index 957b938fc..ebe04a5f6 100644
--- a/lib/vssh/libssh.c
+++ b/lib/vssh/libssh.c
@@ -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;
}