From b877ae23ac5d380ab3aa48d7724045cf4883b186 Mon Sep 17 00:00:00 2001 From: oroborus Date: Fri, 27 Jun 2008 21:23:30 +0000 Subject: - oprava chyby -- server sa pri obsluhe "status" zrutil git-svn-id: http://opensvn.csie.org/tuxanci_ng@76 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- config.h | 2 +- src/server.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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) ) { -- cgit v1.2.3