From 1b22f4a73aa3b8c6e52ac0d5943b32630605c8cb Mon Sep 17 00:00:00 2001 From: kevin Date: Sun, 28 Apr 2013 19:33:00 -0700 Subject: [PATCH] cmRtNet.c:Fixed bug with detecting reuse of node labels in _cmRtNetSyncModeRecv(). --- cmRtNet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmRtNet.c b/cmRtNet.c index 89f3408..4115b89 100644 --- a/cmRtNet.c +++ b/cmRtNet.c @@ -513,7 +513,7 @@ cmRtNetRC_t _cmRtNetSyncModeRecv( cmRtNet_t* p, const char* data, unsigned data const cmChar_t* fromAddrStr = cmUdpAddrToString(p->udpH,fromAddr); const cmChar_t* localAddrStr = cmUdpAddrToString(p->udpH,cmUdpLocalAddr(p->udpH)); - if( fromAddrStr!=NULL && localAddrStr!=NULL && strcmp(fromAddrStr,localAddrStr)==0) + if( fromAddrStr!=NULL && localAddrStr!=NULL && strcmp(fromAddrStr,localAddrStr)!=0) cmErrMsg(&p->err,kDuplLocalNetRC,"The node label '%s' appears to be duplicated at address %s and locally.",cmStringNullGuard(m.label),fromAddrStr); np->sockaddr = *fromAddr;