From f37321230ce6d99bd128496048667dae7fae231d Mon Sep 17 00:00:00 2001 From: scw Date: Sun, 4 Nov 2007 08:17:01 +0000 Subject: Escape from being watched when playing info is NULL git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3587 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/chess.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'mbbsd') diff --git a/mbbsd/chess.c b/mbbsd/chess.c index d1ad3ad0..afe6dcd8 100644 --- a/mbbsd/chess.c +++ b/mbbsd/chess.c @@ -887,10 +887,9 @@ ChessWatchRequest(int sig) int sock = establish_talk_connection(&SHM->uinfo[currutmp->destuip]); ChessBroadcastListNode* node; - if (sock < 0) + if (sock < 0 || !CurrentPlayingGameInfo) return; - assert(CurrentPlayingGameInfo); node = ChessBroadcastListInsert(&CurrentPlayingGameInfo->broadcast_list); node->sock = sock; -- cgit v1.2.3