]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
libssh2: delete redundant feature guard
authorViktor Szakats <commit@vsz.me>
Sun, 5 May 2024 09:49:11 +0000 (11:49 +0200)
committerViktor Szakats <commit@vsz.me>
Sun, 5 May 2024 14:34:41 +0000 (16:34 +0200)
Delete `HAVE_LIBSSH2_VERSION` (equivalent to
`LIBSSH2_VERSION_NUM` > 0x010100) guard surrounding
a `LIBSSH2_VERSION_NUM` > 0x010B00 one.

Reviewed-by: Daniel Gustafsson
Closes #13537

lib/vssh/libssh2.c

index 39d4169faf8f6dc695d252aa2a34fbff00ff43c9..abdf42e558fe081e8148225fab4eb292ebffd345 100644 (file)
@@ -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) {