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>
pull/30/head
Slávek Banko 4 years ago
parent 410254df4d
commit 71415aad02
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