diff options
author | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-11-04 16:17:01 +0800 |
---|---|---|
committer | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-11-04 16:17:01 +0800 |
commit | f37321230ce6d99bd128496048667dae7fae231d (patch) | |
tree | 02727e809c6723e90537fa07c8d7cb8836136d9e | |
parent | f71dd0b418b28bff11b31d8c6ebf78b2c8efd72a (diff) | |
download | pttbbs-f37321230ce6d99bd128496048667dae7fae231d.tar pttbbs-f37321230ce6d99bd128496048667dae7fae231d.tar.gz pttbbs-f37321230ce6d99bd128496048667dae7fae231d.tar.bz2 pttbbs-f37321230ce6d99bd128496048667dae7fae231d.tar.lz pttbbs-f37321230ce6d99bd128496048667dae7fae231d.tar.xz pttbbs-f37321230ce6d99bd128496048667dae7fae231d.tar.zst pttbbs-f37321230ce6d99bd128496048667dae7fae231d.zip |
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
-rw-r--r-- | mbbsd/chess.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; |