浏览代码

cmRtNet.c:Fixed bug with detecting reuse of node labels in _cmRtNetSyncModeRecv().

master
kevin 11 年前
父节点
当前提交
1b22f4a73a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      cmRtNet.c

+ 1
- 1
cmRtNet.c 查看文件

@@ -513,7 +513,7 @@ cmRtNetRC_t  _cmRtNetSyncModeRecv( cmRtNet_t* p, const char* data, unsigned data
513 513
         const cmChar_t* fromAddrStr  = cmUdpAddrToString(p->udpH,fromAddr);
514 514
         const cmChar_t* localAddrStr = cmUdpAddrToString(p->udpH,cmUdpLocalAddr(p->udpH));
515 515
 
516
-        if( fromAddrStr!=NULL && localAddrStr!=NULL && strcmp(fromAddrStr,localAddrStr)==0)
516
+        if( fromAddrStr!=NULL && localAddrStr!=NULL && strcmp(fromAddrStr,localAddrStr)!=0)
517 517
           cmErrMsg(&p->err,kDuplLocalNetRC,"The node label '%s' appears to be duplicated at address %s and locally.",cmStringNullGuard(m.label),fromAddrStr);
518 518
 
519 519
         np->sockaddr = *fromAddr;

正在加载...
取消
保存