зеркало из https://github.com/mozilla/pjs.git
Don't attempt to read from the file we are sending unless the file stream is in fact open.
This commit is contained in:
Родитель
20f563331e
Коммит
accaad05aa
|
@ -1010,7 +1010,7 @@ PRInt32 nsSmtpProtocol::SendMessageInFile()
|
|||
if (filePath && *filePath)
|
||||
{
|
||||
nsInputFileStream * fileStream = new nsInputFileStream(nsFileSpec(*filePath), PR_RDONLY, 00700);
|
||||
if (fileStream)
|
||||
if (fileStream && fileStream->is_open())
|
||||
{
|
||||
PRInt32 amtInBuffer = 0;
|
||||
PRBool lastLineWasComplete = PR_TRUE;
|
||||
|
|
Загрузка…
Ссылка в новой задаче