You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
894 B

  1. From 4fa98f0b0b493ebbef616404dbc03ba5fe811997 Mon Sep 17 00:00:00 2001
  2. From: userwithuid <userwithuid@gmail.com>
  3. Date: Sun, 27 May 2018 12:47:15 -0700
  4. Subject: [PATCH] fix logic for setting the curl ca bundle file
  5. we do not want to delete the system default by setting this to NULL...
  6. ---
  7. libtransmission/web.c | 5 ++++-
  8. 1 file changed, 4 insertions(+), 1 deletion(-)
  9. diff --git a/libtransmission/web.c b/libtransmission/web.c
  10. index db349760b..997a151b5 100644
  11. --- a/libtransmission/web.c
  12. +++ b/libtransmission/web.c
  13. @@ -191,7 +191,10 @@ createEasy (tr_session * s, struct tr_web * web, struct tr_web_task * task)
  14. #endif
  15. if (web->curl_ssl_verify)
  16. {
  17. - curl_easy_setopt (e, CURLOPT_CAINFO, web->curl_ca_bundle);
  18. + if (web->curl_ca_bundle != NULL)
  19. + {
  20. + curl_easy_setopt (e, CURLOPT_CAINFO, web->curl_ca_bundle);
  21. + }
  22. }
  23. else
  24. {
  25. --
  26. 2.17.0