Skip to content

Commit 3d43df9

Browse files
committedJun 24, 2015
Return to ignore
1 parent b13809f commit 3d43df9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
 

‎src/client.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -880,6 +880,7 @@ void Client::ProcessData(NetworkPacket *pkt)
880880
if (command >= TOCLIENT_NUM_MSG_TYPES) {
881881
infostream << "Client: Ignoring unknown command "
882882
<< command << std::endl;
883+
return;
883884
}
884885

885886
/*

‎src/server.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -1206,6 +1206,7 @@ void Server::ProcessData(NetworkPacket *pkt)
12061206
if (command >= TOSERVER_NUM_MSG_TYPES) {
12071207
infostream << "Server: Ignoring unknown command "
12081208
<< command << std::endl;
1209+
return;
12091210
}
12101211

12111212
if (toServerCommandTable[command].state == TOSERVER_STATE_NOT_CONNECTED) {

0 commit comments

Comments
 (0)
Please sign in to comment.