diff --git a/lib/vssh/libssh.c b/lib/vssh/libssh.c index 957b938fc8..ebe04a5f65 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; }