]> granicus.if.org Git - curl/commit
FTP: fix proxy connect race condition
authorDaniel Stenberg <daniel@haxx.se>
Thu, 18 Aug 2011 21:35:15 +0000 (23:35 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 18 Aug 2011 21:35:15 +0000 (23:35 +0200)
commitb998d95b4d6de388ddc59a48714a2a1d9a43dc43
treef216741373ddbb8907a59b8e1ada36e5cb12d632
parentd44896508ce73fdab43ad7ea713817b58432baa0
FTP: fix proxy connect race condition

When using the multi interface, a SOCKS proxy, and a connection that
wouldn't immediately consider itself connected (which my Linux tests do
by default), libcurl would be tricked into doing _two_ connects to the
SOCKS proxy when it setup the data connection and then of course the
second attempt would fail miserably and cause error.

This problem is a regression that was introduced by commit
4a42e5cdaa344755 that was introduced in the 7.21.7 release.

Bug: http://curl.haxx.se/mail/lib-2011-08/0199.html
Reported by: Fabian Keil
lib/connect.c
lib/ftp.c
lib/url.c
lib/urldata.h