From 03e7db8ff0f7d26ae10b65db33697fa7f97b0e20 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Thu, 3 Jul 2003 15:17:11 +0000 Subject: [PATCH] improved port default --- src/cas/io/bsdSocket/casDGIntfIO.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/cas/io/bsdSocket/casDGIntfIO.cc b/src/cas/io/bsdSocket/casDGIntfIO.cc index c09a09ff1..6850390b1 100644 --- a/src/cas/io/bsdSocket/casDGIntfIO.cc +++ b/src/cas/io/bsdSocket/casDGIntfIO.cc @@ -101,6 +101,7 @@ casDGIntfIO::casDGIntfIO ( caServerI & serverIn, clientBufMemoryManager & memMgr ellInit ( &tmpList ); osiSockDiscoverBroadcastAddresses (&tmpList, this->sock, &serverAddr); // match addr + forcePort ( &tmpList, beaconPort ); removeDuplicateAddresses ( &BCastAddrList, &tmpList, 1 ); if (ellCount(&BCastAddrList)<1) { errMessage (S_cas_noInterface, "- unable to continue"); @@ -111,10 +112,7 @@ casDGIntfIO::casDGIntfIO ( caServerI & serverIn, clientBufMemoryManager & memMgr serverBCastAddr.ia = pAddr->addr.ia; serverBCastAddr.ia.sin_port = htons (this->dgPort); - if ( autoBeaconAddr ) { - forcePort ( &BCastAddrList, beaconPort ); - } - else { + if ( ! autoBeaconAddr ) { // avoid use of ellFree because problems on windows occur if the // free is in a different DLL than the malloc while ( ELLNODE * pnode = ellGet ( & BCastAddrList ) ) {