patch-lib_url_c 1.2 KB

12345678910111213141516171819202122232425262728
  1. --- curl-7.42.0.orig/lib/url.c 2015-04-22 07:55:54.000000000 +0200
  2. +++ curl-7.42.0/lib/url.c 2015-04-24 18:00:21.000000000 +0200
  3. @@ -3069,9 +3069,11 @@ ConnectionExists(struct SessionHandle *d
  4. struct connectdata *check;
  5. struct connectdata *chosen = 0;
  6. bool canPipeline = IsPipeliningPossible(data, needle);
  7. +#ifdef USE_NTLM
  8. bool wantNTLMhttp = ((data->state.authhost.want & CURLAUTH_NTLM) ||
  9. (data->state.authhost.want & CURLAUTH_NTLM_WB)) &&
  10. (needle->handler->protocol & PROTO_FAMILY_HTTP) ? TRUE : FALSE;
  11. +#endif
  12. struct connectbundle *bundle;
  13. *force_reuse = FALSE;
  14. @@ -3208,8 +3210,11 @@ ConnectionExists(struct SessionHandle *d
  15. continue;
  16. }
  17. - if((!(needle->handler->flags & PROTOPT_CREDSPERREQUEST)) ||
  18. - (wantNTLMhttp || check->ntlm.state != NTLMSTATE_NONE)) {
  19. + if((!(needle->handler->flags & PROTOPT_CREDSPERREQUEST))
  20. +#ifdef USE_NTLM
  21. + || (wantNTLMhttp || check->ntlm.state != NTLMSTATE_NONE)
  22. +#endif
  23. + ) {
  24. /* This protocol requires credentials per connection or is HTTP+NTLM,
  25. so verify that we're using the same name and password as well */
  26. if(!strequal(needle->user, check->user) ||