# Problem using curl + c-ares

2 messages from 2012-06-22 to 2012-06-23. Participants: Wesley Shields, Daniel Stenberg.
Thread: https://gitlist.dev/t/30863

## Wesley Shields, 2012-06-22 02:03

Subject: Problem using curl + c-ares
Message-ID: <20120622020308.GA31477@atarininja.org>
URL: https://gitlist.dev/e/20120622020308.GA31477%40atarininja.org

```
I'm trying to debug a problem that came to my attention when using git
to clone a repository over HTTP or HTTPS if curl is built to use the
c-ares bindings.

The symptom is well documented at:

http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/167517

If you run tcpdump while triggering this problem you will see that the
bytes for the destination port in the packet for the A record query are
swapped. I'm not familiar enough with the git code to debug it fully but
I would be happy to provide any information needed to help.

Just using curl on the box works fine so I suspect it's not a problem
with curl, but with how git is using curl? I'd appreciate any pointers
with this!

Please keep me on CC as I am not subscribed to this list. Thanks!

-- WXS

```

## Daniel Stenberg, 2012-06-23 20:41

Subject: Re: Problem using curl + c-ares
Message-ID: <alpine.DEB.2.00.1206232240080.28168@tvnag.unkk.fr>
URL: https://gitlist.dev/e/alpine.DEB.2.00.1206232240080.28168%40tvnag.unkk.fr
In-Reply-To: <20120622020308.GA31477@atarininja.org>

```
On Thu, 21 Jun 2012, Wesley Shields wrote:

> I'm trying to debug a problem that came to my attention when using git to 
> clone a repository over HTTP or HTTPS if curl is built to use the c-ares 
> bindings.
>
> The symptom is well documented at:
>
> http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/167517

This is most probably one of the c-ares bugs that were already fixed in the 
1.9.x releases.

-- 

  / daniel.haxx.se

```
