diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2021-05-24 22:09:12 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2021-05-24 22:09:12 +0200 |
commit | 71415aad02f1e60c8e3c788bd0d844e4da034eb4 (patch) | |
tree | 797432b31a5eceaaa13040a7dbdb104e6855dc18 /kopete | |
parent | 410254df4d90c08e6e31942cc17e86178b7118b0 (diff) | |
download | tdenetwork-71415aad02f1e60c8e3c788bd0d844e4da034eb4.tar.gz tdenetwork-71415aad02f1e60c8e3c788bd0d844e4da034eb4.zip |
kopete: Fix crash due to null pointer dereference in IRC protocol.
This manifests itself only if SSL/TLS is used for IRC.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'kopete')
-rw-r--r-- | kopete/protocols/irc/libkirc/ksslsocket.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kopete/protocols/irc/libkirc/ksslsocket.cpp b/kopete/protocols/irc/libkirc/ksslsocket.cpp index 23e7a10c..c64eb21a 100644 --- a/kopete/protocols/irc/libkirc/ksslsocket.cpp +++ b/kopete/protocols/irc/libkirc/ksslsocket.cpp @@ -103,7 +103,7 @@ int KSSLSocket::peekBlock( char* data, uint maxLen ) TQ_LONG KSSLSocket::writeBlock( const char* data, TQ_ULONG len ) { - return d->kssl->write( data, len ); + return d->kssl ? (d->kssl->write(data, len)) : -1; } #ifdef USE_QT4 |