diff options
author | Vincent Richard <[email protected]> | 2014-06-08 22:10:03 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2014-06-08 22:10:03 +0000 |
commit | 7302731524c4c374b6c686895bac9567bf8882cc (patch) | |
tree | 8c1e4a7d5129f42c5478e6bca8639c1c88047c64 | |
parent | Fixed decoding of '&-' in IMAP modified UTF-7 encoding. (diff) | |
download | vmime-7302731524c4c374b6c686895bac9567bf8882cc.tar.gz vmime-7302731524c4c374b6c686895bac9567bf8882cc.zip |
Check for NULL pointer in 'ai_canonname'.
-rw-r--r-- | src/vmime/platforms/posix/posixHandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vmime/platforms/posix/posixHandler.cpp b/src/vmime/platforms/posix/posixHandler.cpp index f23f09ad..1bbd039a 100644 --- a/src/vmime/platforms/posix/posixHandler.cpp +++ b/src/vmime/platforms/posix/posixHandler.cpp @@ -210,7 +210,7 @@ const vmime::string posixHandler::getHostName() const { for (struct addrinfo* p = info ; p != NULL ; p = p->ai_next) { - if (isFQDN(p->ai_canonname)) + if (p->ai_canonname && isFQDN(p->ai_canonname)) { const string ret(p->ai_canonname); freeaddrinfo(info); |