Bug 717412 - Connection failures during upload using PORT not handled cleanly
Summary: Connection failures during upload using PORT not handled cleanly
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: vsftpd
Version: rawhide
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Jiri Skala
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-28 19:00 UTC by Siddhesh Poyarekar
Modified: 2015-09-14 00:22 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-28 19:50:05 UTC
Type: ---


Attachments (Terms of Use)

Description Siddhesh Poyarekar 2011-06-28 19:00:18 UTC
Created attachment 510344 [details]
Set retval -1 and correct errno on connect failure

Description of problem:
vsftpd does not handle connection failures using the PORT command when a client tries to upload a file to it, but has ftp-data port blocked due to some reason.

Version-Release number of selected component (if applicable):
vsftpd-2.2.2-6.el6_0.1

How reproducible:
Always

Steps to Reproduce:
1. At client:

iptables -A INPUT -p tcp --sport ftp-data -j REJECT --reject-with icmp-net-unreachable

2. Connect to the ftp server
3. Upload file
  
Actual results:

Transfer hangs at:

local: ftptest remote: ftptest
200 PORT command successful. Consider using PASV.
150 Ok to send data.


Expected results:

The client should get an error:

local: ftptest remote: ftptest
200 PORT command successful. Consider using PASV.
425 Failed to establish connection.

Additional info:

Attached patch by Takayuki Nagata <tnagata> fixes this.

Comment 1 Siddhesh Poyarekar 2011-06-28 19:01:31 UTC
Component is of course vsftpd-2.3.4-1.f16


Note You need to log in before you can comment on or make changes to this bug.