cURL / Mailing Lists / curl-users / Single Mail

curl-users

[ curl-Bugs-803990 ] patch to fix segfault for ftp urls with no proxy

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Wed, 10 Sep 2003 13:44:19 -0700

Bugs item #803990, was opened at 2003-09-10 13:44
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=803990&group_id=976

Category: ftp
Group: crash
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: patch to fix segfault for ftp urls with no proxy

Initial Comment:
patch to fix segfault for ftp urls with no proxy, when

using the curl_easy_setopt(curl, CURLOPT_PROXY, "");

method of disabling proxies.

diff -ur curl-7.10/lib/ftp.c curl-7.10-patched/lib/ftp.c

--- curl-7.10/lib/ftp.c Tue Sep 24 02:27:59 2002

+++ curl-7.10-patched/lib/ftp.c Wed Sep 10 13:52:04

2003

@@ -1450,7 +1450,7 @@

   else

     return CURLE_FTP_CANT_RECONNECT;

- if(data->change.proxy) {

+ if(data->change.proxy && *data->change.proxy) {

     /*

      * This is a tunnel through a http proxy and we need

to connect to the

      * proxy again here.

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

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

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-09-10