Skip to content

Commit 91cd7fe

Browse files
RSARTE-176558: Fix incorrect string comparison for external port
1 parent 90bfe21 commit 91cd7fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

art-samples/TcpServer/TCPServer.art

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ protected:
283283
bool firstPort = true;
284284
for (int i = actorData->numPorts; --i >= 0; ++portDescriptor ) {
285285
RTProtocol* port = RTObjectOf( RTProtocol, portDescriptor->offset, this );
286-
if (port->getName() == "external" && port->getInfo()->protocol->name == "External")
286+
if (!RTMemoryUtil::strcmp(port->getName(), "external") && !RTMemoryUtil::strcmp(port->getInfo()->protocol->name, "External"))
287287
continue; // Skip the 'external' port of the TCPServer capsule since it's only for internal use
288288

289289
if (!firstPort)

0 commit comments

Comments
 (0)