diff options
-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 |