diff options
author | Abbaad Haider <abbaad@gmail.com> | 2014-07-05 20:43:48 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-07-13 17:57:59 -0700 |
commit | 479eaa8ef8384d8026dc05c1288e96ffd9e296d6 (patch) | |
tree | 7e83addaf8d5ffb956cfaeb23a8ae43d9daf7d4e | |
parent | 45067fc973c31953ab283f77f0f91eba9a272624 (diff) | |
download | git-479eaa8ef8384d8026dc05c1288e96ffd9e296d6.tar.gz |
http-push.c: make CURLOPT_IOCTLDATA a usable pointerah/fix-http-push
Fixes a small bug affecting push to remotes which use some sort of
multi-pass authentication. In particular the bug affected SabreDAV as
configured by Box.com [1].
It must be a weird server configuration for the bug to have survived
this long. Someone should write a test for it.
[1] http://marc.info/?l=git&m=140460482604482
Signed-off-by: Abbaad Haider <abbaad@gmail.com>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | http-push.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/http-push.c b/http-push.c index 34cb70f90e..3bcf8073ee 100644 --- a/http-push.c +++ b/http-push.c @@ -200,7 +200,7 @@ static void curl_setup_http(CURL *curl, const char *url, curl_easy_setopt(curl, CURLOPT_READFUNCTION, fread_buffer); #ifndef NO_CURL_IOCTL curl_easy_setopt(curl, CURLOPT_IOCTLFUNCTION, ioctl_buffer); - curl_easy_setopt(curl, CURLOPT_IOCTLDATA, &buffer); + curl_easy_setopt(curl, CURLOPT_IOCTLDATA, buffer); #endif curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_fn); curl_easy_setopt(curl, CURLOPT_NOBODY, 0); |