From 71415aad02f1e60c8e3c788bd0d844e4da034eb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Mon, 24 May 2021 22:09:12 +0200 Subject: kopete: Fix crash due to null pointer dereference in IRC protocol. This manifests itself only if SSL/TLS is used for IRC. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- kopete/protocols/irc/libkirc/ksslsocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kopete') 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 -- cgit v1.2.1