summaryrefslogtreecommitdiff
path: root/mailnews/imap/src/nsImapProtocol.cpp
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2019-11-10 20:22:34 -0500
committerMatt A. Tobin <email@mattatobin.com>2019-11-10 20:22:34 -0500
commit4d20783c0aa26ced30b55c3eaaab76f46a01a803 (patch)
treeb5f673be39cce0eab97ca4708741ff19b00c4277 /mailnews/imap/src/nsImapProtocol.cpp
parent81dd1338705ca800b5a41a364f3206a45508cd06 (diff)
downloaduxp-4d20783c0aa26ced30b55c3eaaab76f46a01a803.tar.gz
Bug 1444389 - Fix crash in nsImapProtocol::HandleMessageDownLoadLine().
Tag #1273
Diffstat (limited to 'mailnews/imap/src/nsImapProtocol.cpp')
-rw-r--r--mailnews/imap/src/nsImapProtocol.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/mailnews/imap/src/nsImapProtocol.cpp b/mailnews/imap/src/nsImapProtocol.cpp
index 9114a28f2f..5e2639a5a4 100644
--- a/mailnews/imap/src/nsImapProtocol.cpp
+++ b/mailnews/imap/src/nsImapProtocol.cpp
@@ -3806,6 +3806,7 @@ nsImapProtocol::PostLineDownLoadEvent(const char *line, uint32_t uidOfMessage)
void nsImapProtocol::HandleMessageDownLoadLine(const char *line, bool isPartialLine,
char *lineCopy)
{
+ NS_ENSURE_TRUE_VOID(line);
NS_PRECONDITION(lineCopy == nullptr || !PL_strcmp(line, lineCopy),
"line and lineCopy must contain the same string");
const char *messageLine = line;