projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39123fc
)
Fix potential crash in chat handling (since 2f56a00d9eef82052614e5854a07b39b087efd0b)
author
sfan5
<sfan5@live.de>
Sun, 22 Jan 2017 19:17:13 +0000
(20:17 +0100)
committer
sfan5
<sfan5@live.de>
Sun, 22 Jan 2017 19:17:13 +0000
(20:17 +0100)
src/server.cpp
patch
|
blob
|
history
diff --git
a/src/server.cpp
b/src/server.cpp
index 7e1ab30acb23269ca7d4b7b003290f299bfa9592..c7d4fcba9a67962c143639fcf17de7dcd268a0e8 100644
(file)
--- a/
src/server.cpp
+++ b/
src/server.cpp
@@
-2864,7
+2864,7
@@
std::wstring Server::handleChat(const std::string &name, const std::wstring &wna
*/
u16 peer_id_to_avoid_sending = (player ? player->peer_id : PEER_ID_INEXISTENT);
- if (player->protocol_version >= 29)
+ if (player
&& player
->protocol_version >= 29)
peer_id_to_avoid_sending = PEER_ID_INEXISTENT;
for (u16 i = 0; i < clients.size(); i++) {