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>
(cherry picked from commit 71415aad02)
pull/38/head
Slávek Banko 3 years ago
parent 79ca211e6b
commit 835518cc84
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -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

Loading…
Cancel
Save