cURL / Mailing Lists / curl-users / Single Mail

curl-users

[ curl-Bugs-852899 ] Socks5 fails in Curl_resolv

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Tue, 02 Dec 2003 14:04:07 -0800

Bugs item #852899, was opened at 2003-12-02 17:04
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=852899&group_id=976

Category: libcurl
Group: wrong behaviour
Status: Open
Resolution: None
Priority: 5
Submitted By: Steve Green (lagnat)
Assigned to: Daniel Stenberg (bagder)
Summary: Socks5 fails in Curl_resolv

Initial Comment:
When using socks5 with no authentication, libcurl will
call Curl_resolv to resolve the host in the URL. In
the last "else" block, a valid dns entry is returned
from cache_resolv_response, but rc remains at the
default of -1. Socks5 will subsequently fail, even
though the returned entry is valid.

curl 7.10.8 (i686-pc-linux-gnu) libcurl/7.10.8
OpenSSL/0.9.7a zlib/1.2.0.7
Protocols: ftp gopher telnet dict ldap http file https
ftps
Features: SSL libz NTLM Debug

hostip.c:348

      if(!dns) {
        /* returned failure, bail out nicely */
        Curl_freeaddrinfo(addr);
      }
+ else
+ rc = 0;

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=852899&group_id=976

-------------------------------------------------------
This SF.net email is sponsored by OSDN's Audience Survey.
Help shape OSDN's sites and tell us what you think. Take this
five minute survey and you could win a $250 Gift Certificate.
http://www.wrgsurveys.com/2003/osdntech03.php?site=8
Received on 2003-12-02