summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.h2
-rw-r--r--src/server.c5
2 files changed, 6 insertions, 1 deletions
diff --git a/config.h b/config.h
index 1dfa2df..88cf9d3 100644
--- a/config.h
+++ b/config.h
@@ -6,7 +6,7 @@
#define DEBUG_CLIENT_RECV
*/
-#define TUXANCI_NG_VERSION "svn75"
+#define TUXANCI_NG_VERSION "svn76"
#define DESTDIR "/usr/local/"
#define SUPPORT_NET_UNIX_UDP
diff --git a/src/server.c b/src/server.c
index dcc475c..7d5c198 100644
--- a/src/server.c
+++ b/src/server.c
@@ -430,6 +430,11 @@ static void addMsgAllClientSeesTux(char *msg, tux_t *tux, int type, int id)
thisClient = (client_t *)listClient->list[i];
thisTux = (tux_t *)thisClient->tux;
+ if( thisTux == NULL )
+ {
+ continue;
+ }
+
if( tux != thisTux &&
isTuxSeesTux(thisTux, tux) )
{