From: Jeff King <peff@peff.net>
To: Abbaad Haider <abbaad@gmail.com>
Cc: Junio C Hamano <gitster@pobox.com>, git@vger.kernel.org
Subject: Re: [PATCH] http-push.c: make CURLOPT_IOCTLDATA a usable pointer
Date: Sat, 12 Jul 2014 00:46:46 -0400 [thread overview]
Message-ID: <20140712044646.GA20675@sigill.intra.peff.net> (raw)
In-Reply-To: <53b89d7a.030d320a.0760.206f@mx.google.com>
On Sat, Jul 05, 2014 at 08:43:48PM -0400, Abbaad Haider wrote:
> 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].
Thanks. This looks like it was caused by the refactor in ebaaf31
(http-push: refactor curl_easy_setup madness, 2011-05-03), which moved
the curl_easy call into a sub-function which took the buffer as a
pointer, rather than accessing it as a local variable.
> It must be a weird server configuration for the bug to have survived
> this long. Someone should write a test for it.
I think both dumb-http push-over-DAV and multi-pass authentication are
rare, so finding a combination of the two took a while. I do not know
enough about the server setup to know whether we could replicate this in
our test apache setup (and nor do I particularly want to spend a lot of
time figuring it out for the sake of testing push-over-DAV).
> diff --git a/http-push.c b/http-push.c
> index f2c56c8..bd42895 100644
> --- a/http-push.c
> +++ b/http-push.c
> @@ -199,7 +199,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);
Patch looks obviously correct.
prev parent reply other threads:[~2014-07-12 4:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-06 0:00 [BUG] Push fails with dumb http to SabreDAV Abbaad Haider
2014-07-06 0:43 ` [PATCH] http-push.c: make CURLOPT_IOCTLDATA a usable pointer Abbaad Haider
2014-07-12 4:46 ` Jeff King [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140712044646.GA20675@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=abbaad@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).