aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2014-01-05 19:00:34 +0000
committerVincent Richard <[email protected]>2014-01-05 19:00:34 +0000
commit59e635d31782ae139569035db10cbc34de186b20 (patch)
tree1a4bccafe26530cc3a92497ee34c71e633991061
parentReport sending progress when chunking is supported. (diff)
downloadvmime-59e635d31782ae139569035db10cbc34de186b20.tar.gz
vmime-59e635d31782ae139569035db10cbc34de186b20.zip
Check for NULL progress listener.
-rw-r--r--src/vmime/net/smtp/SMTPChunkingOutputStreamAdapter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vmime/net/smtp/SMTPChunkingOutputStreamAdapter.cpp b/src/vmime/net/smtp/SMTPChunkingOutputStreamAdapter.cpp
index 5f59e381..35ff4e0d 100644
--- a/src/vmime/net/smtp/SMTPChunkingOutputStreamAdapter.cpp
+++ b/src/vmime/net/smtp/SMTPChunkingOutputStreamAdapter.cpp
@@ -141,7 +141,8 @@ void SMTPChunkingOutputStreamAdapter::flush()
sendChunk(m_buffer, m_bufferSize, /* last */ true);
m_bufferSize = 0;
- m_progress->stop(m_totalSize);
+ if (m_progress)
+ m_progress->stop(m_totalSize);
}