diff --git a/netwerk/protocol/ftp/nsFtpConnectionThread.cpp b/netwerk/protocol/ftp/nsFtpConnectionThread.cpp index 60225a3ab13d..cd74aa09a639 100644 --- a/netwerk/protocol/ftp/nsFtpConnectionThread.cpp +++ b/netwerk/protocol/ftp/nsFtpConnectionThread.cpp @@ -1538,7 +1538,7 @@ nsFtpState::R_pasv() { mDataStream = do_QueryInterface(input); } - if (mRETRFailed || (!mPath.IsEmpty() && mPath.Last() == '/')) + if (mRETRFailed || mPath.IsEmpty() || mPath.Last() == '/') return FTP_S_CWD; return FTP_S_SIZE; }