mirror of
https://github.com/pocoproject/poco.git
synced 2026-01-02 10:43:22 +01:00
fix(MailMessage): read hangs on missing final multipart boundary #2401
This commit is contained in:
@@ -105,6 +105,7 @@ int MultipartStreamBuf::readFromDevice(char* buffer, std::streamsize length)
|
||||
*buffer++ = (char) buf.sbumpc(); ++n;
|
||||
ch = buf.sgetc();
|
||||
}
|
||||
if (ch == eof) _lastPart = true;
|
||||
return n;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user