1. 25 Apr, 2017 6 commits
    • Kamil Dudka's avatar
      nss: do not leak PKCS #11 slot while loading a key · c8ea86f3
      Kamil Dudka authored
      It could prevent nss-pem from being unloaded later on.
      
      Bug: https://bugzilla.redhat.com/1444860
      c8ea86f3
    • Marcel Raad's avatar
      typecheck-gcc: fix _curl_is_slist_info · 9c5aed18
      Marcel Raad authored
      Info values starting with CURLINFO_SOCKET expect a curl_socket_t, not a
      curl_slist argument.
      
      This fixes the following GCC warning when building the examples with
      --enable-optimize:
      
      ../../include/curl/typecheck-gcc.h:126:42: warning: call to
      ‘_curl_easy_getinfo_err_curl_slist’ declared with attribute warning:
      curl_easy_getinfo expects a pointer to 'struct curl_slist *' for this
      info [enabled by default]
      sendrecv.c:90:11: note: in expansion of macro ‘curl_easy_getinfo’
      res = curl_easy_getinfo(curl, CURLINFO_ACTIVESOCKET, &sockfd);
      
      Closes https://github.com/curl/curl/pull/1447
      9c5aed18
    • Daniel Stenberg's avatar
      curl: set a 100K buffer size by default · 96ece5c0
      Daniel Stenberg authored
      Test command 'time curl http://localhost/80GB -so /dev/null' on a Debian
      Linux.
      
      Before (middle performing run out 9):
      
       real    0m28.078s
       user    0m11.240s
       sys     0m12.876s
      
      After (middle performing run out 9)
      
       real    0m26.356s (93.9%)
       user    0m5.324s  (47.4%)
       sys     0m8.368s  (65.0%)
      
      Also, doing SFTP over a 200 millsecond latency link is now about 6 times
      faster.
      
      Closes #1446
      96ece5c0
    • Daniel Stenberg's avatar
      transfer: remove 'uploadbuf' pointer and cleanup readwrite_upload() · e698b822
      Daniel Stenberg authored
      The data->req.uploadbuf struct member served no good purpose, instead we
      use ->state.uploadbuffer directly. It makes it clearer in the code which
      buffer that's being used.
      
      Removed the 'SingleRequest *' argument from the readwrite_upload() proto
      as it can be derived from the Curl_easy struct. Also made the code in
      the readwrite_upload() function use the 'k->' shortcut to all references
      to struct fields in 'data->req', which previously was made with a mix of
      both.
      e698b822
    • Jay Satiro's avatar
      configure: stop prepending to LDFLAGS, CPPFLAGS · 338f427a
      Jay Satiro authored
      - Change prepends to appends because user's LDFLAGS and CPPFLAGS should
        always come first so they're searched before ours.
      
      Bug: https://github.com/curl/curl/issues/1420
      Reported-by: Helmut K. C. Tessarek
      338f427a
    • Marcel Raad's avatar
      if2ip: fix -Wcast-align warning · 93567071
      Marcel Raad authored
      Follow-up to 11903732, which fixed the
      warning in the HAVE_GETIFADDRS block, but not in the
      HAVE_IOCTL_SIOCGIFADDR block.
      93567071
  2. 24 Apr, 2017 5 commits
  3. 23 Apr, 2017 2 commits
  4. 22 Apr, 2017 4 commits
    • Alan Jenkins's avatar
      multi: clarify condition in curl_multi_wait · be299a4d
      Alan Jenkins authored
      `if(nfds || extra_nfds) {` is followed by `malloc(nfds * ...)`.
      
      If `extra_fs` could be non-zero when `nfds` was zero, then we have
      `malloc(0)` which is allowed to return `NULL`. But, malloc returning
      NULL can be confusing. In this code, the next line would treat the NULL
      as an allocation failure.
      
      It turns out, if `nfds` is zero then `extra_nfds` must also be zero.
      The final value of `nfds` includes `extra_nfds`.  So the test for
      `extra_nfds` is redundant.  It can only confuse the reader.
      
      Closes #1439
      be299a4d
    • Marcel Raad's avatar
      lib: fix maybe-uninitialized warnings · 4a8cf6c4
      Marcel Raad authored
      With -Og, GCC complains:
      
      easy.c:628:7: error: ‘mcode’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
      
      ../lib/strcase.h:35:29: error: ‘tok_buf’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
      vauth/digest.c:208:9: note: ‘tok_buf’ was declared here
      
      ../lib/strcase.h:35:29: error: ‘tok_buf’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
      vauth/digest.c:566:15: note: ‘tok_buf’ was declared here
      
      Fix this by initializing the variables.
      4a8cf6c4
    • Dan Fandrich's avatar
      gnutls: removed some code when --disable-verbose is configured · f761da76
      Dan Fandrich authored
      This reduces the binary size and fixes a compile warning.
      f761da76
    • Daniel Stenberg's avatar
      llist: no longer uses malloc · cbae73e1
      Daniel Stenberg authored
      The 'list element' struct now has to be within the data that is being
      added to the list. Removes 16.6% (tiny) mallocs from a simple HTTP
      transfer. (96 => 80)
      
      Also removed return codes since the llist functions can't fail now.
      
      Test 1300 updated accordingly.
      
      Closes #1435
      cbae73e1
  5. 21 Apr, 2017 3 commits
  6. 20 Apr, 2017 2 commits
  7. 19 Apr, 2017 4 commits
  8. 18 Apr, 2017 2 commits
  9. 17 Apr, 2017 7 commits
  10. 16 Apr, 2017 2 commits
  11. 15 Apr, 2017 3 commits