|
@@ -1766,7 +1766,7 @@ HistorieServerClient *InformationClient::createHistorieServerClient( int spielId
|
|
k->getNachrichtEncrypted( (char*)&ret, 1 );
|
|
k->getNachrichtEncrypted( (char*)&ret, 1 );
|
|
if( ret == 1 )
|
|
if( ret == 1 )
|
|
{
|
|
{
|
|
- k->getNachrichtEncrypted( (char*)port, 4 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&port, 4 );
|
|
char län = 0;
|
|
char län = 0;
|
|
k->getNachrichtEncrypted( &län, 1 );
|
|
k->getNachrichtEncrypted( &län, 1 );
|
|
char *ip = new char[ län + 1 ];
|
|
char *ip = new char[ län + 1 ];
|
|
@@ -1787,6 +1787,8 @@ HistorieServerClient *InformationClient::createHistorieServerClient( int spielId
|
|
k->getNachrichtEncrypted( f, byte );
|
|
k->getNachrichtEncrypted( f, byte );
|
|
err = f;
|
|
err = f;
|
|
delete[] f;
|
|
delete[] f;
|
|
|
|
+ cs.unlock();
|
|
|
|
+ return 0;
|
|
}
|
|
}
|
|
err = "Unbekannter Fehler";
|
|
err = "Unbekannter Fehler";
|
|
cs.unlock();
|
|
cs.unlock();
|
|
@@ -1927,7 +1929,7 @@ EditorServerClient *InformationClient::createEditorServerClient( int karteId )
|
|
char län = 0;
|
|
char län = 0;
|
|
k->getNachrichtEncrypted( &län, 1 );
|
|
k->getNachrichtEncrypted( &län, 1 );
|
|
char *ip = new char[ län + 1 ];
|
|
char *ip = new char[ län + 1 ];
|
|
- ip[ län - 1 ] = 0;
|
|
|
|
|
|
+ ip[ län ] = 0;
|
|
k->getNachrichtEncrypted( ip, län );
|
|
k->getNachrichtEncrypted( ip, län );
|
|
EditorClient *ret = new EditorClient( cId, (unsigned short)port, ip, this->key, this->keyLen );
|
|
EditorClient *ret = new EditorClient( cId, (unsigned short)port, ip, this->key, this->keyLen );
|
|
delete[] ip;
|
|
delete[] ip;
|
|
@@ -1978,7 +1980,7 @@ KartenServerClient *InformationClient::createKartenServerClient( int karteId )
|
|
char län = 0;
|
|
char län = 0;
|
|
k->getNachrichtEncrypted( &län, 1 );
|
|
k->getNachrichtEncrypted( &län, 1 );
|
|
char *ip = new char[ län + 1 ];
|
|
char *ip = new char[ län + 1 ];
|
|
- ip[ län - 1 ] = 0;
|
|
|
|
|
|
+ ip[ län ] = 0;
|
|
k->getNachrichtEncrypted( ip, län );
|
|
k->getNachrichtEncrypted( ip, län );
|
|
KartenClient *ret = new KartenClient( cId, (unsigned short)port, ip, this->key, this->keyLen );
|
|
KartenClient *ret = new KartenClient( cId, (unsigned short)port, ip, this->key, this->keyLen );
|
|
delete[] ip;
|
|
delete[] ip;
|