Browse Source

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

master
kevin 11 years ago
parent
commit
1b22f4a73a
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      cmRtNet.c

+ 1
- 1
cmRtNet.c View File

@@ -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;

Loading…
Cancel
Save