Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
willamowius committed Jan 2, 2019
1 parent 94ba542 commit 4f4927d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Neighbor.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2254,7 +2254,7 @@ Route * SRVPolicy::LSLookup(RoutingRequest & request, H225_ArrayOf_AliasAddress

int m_neighborTimeout = GkConfig()->GetInteger(LRQFeaturesSection, "NeighborTimeout", 5) * 100;

// Send LRQ to retreive callers signaling address
// Send LRQ to retrieve callers signaling address
// Caution: we may only use the functor object of the right type and never touch the others!
LRQSender<AdmissionRequest> ArqFunctor((AdmissionRequest &)request);
LRQSender<SetupRequest> SetupFunctor((SetupRequest &)request);
Expand Down Expand Up @@ -2357,7 +2357,7 @@ Route * SRVPolicy::CSLookup(H225_ArrayOf_AliasAddress & aliases, bool localonly,

// If we have a gateway destination replace destination with our destination.
PStringArray parts;
if (!gateway) {
if (!gateway.IsEmpty()) {
parts = SplitIPAndPort(gateway, GK_DEF_ENDPOINT_SIGNAL_PORT);
PIPSocket::Address addr;
if (PIPSocket::GetHostAddress(parts[0], addr))
Expand All @@ -2373,7 +2373,7 @@ Route * SRVPolicy::CSLookup(H225_ArrayOf_AliasAddress & aliases, bool localonly,
if (!(GetIPFromTransportAddr(dest, addr) && addr.IsValid()))
continue;

if (!gateway) { // If we have a gateway destination send full URI
if (!gateway.IsEmpty()) { // If we have a gateway destination send full URI
PStringArray parts = SplitIPAndPort(cs[j].Mid(in+1), schemaPort);
PString finalDest = parts[0] + ":" + parts[1];
if (in > 0) finalDest = cs[j].Left(in) + "@" + finalDest;
Expand Down

0 comments on commit 4f4927d

Please sign in to comment.