|
@@ -427,8 +427,14 @@ void AppSKlient::thread()
|
|
|
case 0: // Schlüssel Anfrage
|
|
|
if( 1 )
|
|
|
{
|
|
|
- klient->sendeEncrypted( "\1", 1 );
|
|
|
Text *s = appS->zDB()->getKey();
|
|
|
+ if( s )
|
|
|
+ klient->sendeEncrypted( "\1", 1 );
|
|
|
+ else
|
|
|
+ {
|
|
|
+ errorZuKlient( "Fehler beim Aufbauen der verschlüsselten Verbindung zum Server." );
|
|
|
+ break;
|
|
|
+ }
|
|
|
char l = (char)s->getLength();
|
|
|
klient->sendeEncrypted( &l, 1 );
|
|
|
klient->sendeEncrypted( s->getText(), l );
|