OSDN Git Service

chl==NULLで落ちるバグを修正
[peercast-im/PeerCastIM.git] / PeerCast.root / PeerCast / core / common / servent.cpp
index 0d53331..7f15723 100644 (file)
@@ -977,7 +977,7 @@ bool Servent::handshakeStream(ChanInfo &chanInfo)
                                                }*/
 
                                                ChanHitList *chl = chanMgr->findHitList(chanInfo);
-                                               ChanHit *hit = chl->hit;
+                                               ChanHit *hit = (chl ? chl->hit : NULL);
                                                while(hit){
                                                        if (hit->host.isValid() && (h.ip == hit->host.ip))
                                                        {