Commit 85c84889 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Hmmph, logic fix

parent dcf286bc
...@@ -189,13 +189,6 @@ static int Connect( access_t *p_access, access_sys_t *p_sys ) ...@@ -189,13 +189,6 @@ static int Connect( access_t *p_access, access_sys_t *p_sys )
return -1; return -1;
} }
/* Extended passive mode */
if( ftp_SendCommand( p_access, "EPSV ALL" ) < 0 )
{
msg_Err( p_access, "cannot request extended passive mode" );
return -1;
}
return 0; return 0;
} }
...@@ -249,6 +242,13 @@ static int Open( vlc_object_t *p_this ) ...@@ -249,6 +242,13 @@ static int Open( vlc_object_t *p_this )
if( Connect( p_access, p_sys ) < 0 ) if( Connect( p_access, p_sys ) < 0 )
goto exit_error; goto exit_error;
/* Extended passive mode */
if( ftp_SendCommand( p_access, "EPSV ALL" ) < 0 )
{
msg_Err( p_access, "cannot request extended passive mode" );
return -1;
}
if( ftp_ReadCommand( p_access, &i_answer, NULL ) == 2 ) if( ftp_ReadCommand( p_access, &i_answer, NULL ) == 2 )
{ {
char hostaddr[NI_MAXNUMERICHOST]; char hostaddr[NI_MAXNUMERICHOST];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment