aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViktor Szakats <commit@vsz.me>2024-05-05 11:49:11 +0200
committerViktor Szakats <commit@vsz.me>2024-05-05 16:34:41 +0200
commit3a082cd3c55790870a8025856c42587a06cd295e (patch)
tree8912ed95706a9afd9e71200d5f2dcf7b790869c0
parent87d14e77b7d59a961eb56500017c0580f89f252b (diff)
downloadcurl-3a082cd3c55790870a8025856c42587a06cd295e.tar.gz
libssh2: delete redundant feature guard
Delete `HAVE_LIBSSH2_VERSION` (equivalent to `LIBSSH2_VERSION_NUM` > 0x010100) guard surrounding a `LIBSSH2_VERSION_NUM` > 0x010B00 one. Reviewed-by: Daniel Gustafsson Closes #13537
-rw-r--r--lib/vssh/libssh2.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/vssh/libssh2.c b/lib/vssh/libssh2.c
index 39d4169fa..abdf42e55 100644
--- a/lib/vssh/libssh2.c
+++ b/lib/vssh/libssh2.c
@@ -3286,7 +3286,6 @@ static CURLcode ssh_connect(struct Curl_easy *data, bool *done)
return CURLE_FAILED_INIT;
}
-#ifdef HAVE_LIBSSH2_VERSION
/* Set the packet read timeout if the libssh2 version supports it */
#if LIBSSH2_VERSION_NUM >= 0x010B00
if(data->set.server_response_timeout > 0) {
@@ -3294,7 +3293,6 @@ static CURLcode ssh_connect(struct Curl_easy *data, bool *done)
data->set.server_response_timeout / 1000);
}
#endif
-#endif
#ifndef CURL_DISABLE_PROXY
if(conn->http_proxy.proxytype == CURLPROXY_HTTPS) {