aboutsummaryrefslogtreecommitdiff
path: root/system/curlftpfs/patches/no-verify-hostname.patch
diff options
context:
space:
mode:
Diffstat (limited to 'system/curlftpfs/patches/no-verify-hostname.patch')
-rw-r--r--system/curlftpfs/patches/no-verify-hostname.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/system/curlftpfs/patches/no-verify-hostname.patch b/system/curlftpfs/patches/no-verify-hostname.patch
new file mode 100644
index 0000000000000..cf0d410ad924d
--- /dev/null
+++ b/system/curlftpfs/patches/no-verify-hostname.patch
@@ -0,0 +1,14 @@
+diff -aur curlftpfs-0.9.2.orig/ftpfs.c curlftpfs-0.9.2.new/ftpfs.c
+--- curlftpfs-0.9.2.orig/ftpfs.c 2016-01-25 17:01:32.150581272 +0100
++++ curlftpfs-0.9.2.new/ftpfs.c 2016-01-25 17:02:08.566538053 +0100
+@@ -1625,9 +1625,7 @@
+ }
+
+ if (ftpfs.no_verify_hostname) {
+- /* The default is 2 which verifies even the host string. This sets to 1
+- * which means verify the host but not the string. */
+- curl_easy_setopt_or_die(easy, CURLOPT_SSL_VERIFYHOST, 1);
++ curl_easy_setopt_or_die(easy, CURLOPT_SSL_VERIFYHOST, 0);
+ }
+
+ curl_easy_setopt_or_die(easy, CURLOPT_INTERFACE, ftpfs.interface);