From ba92879e1184b4282b6ae0690a20c8980903fd47 Mon Sep 17 00:00:00 2001 From: Jan Romann Date: Mon, 11 Dec 2023 22:54:02 +0100 Subject: [PATCH] fixup! fix(coap-server): ignore incoming messages with an invalid source port --- packages/binding-coap/src/coap-server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/binding-coap/src/coap-server.ts b/packages/binding-coap/src/coap-server.ts index 4d1850c96..474538737 100644 --- a/packages/binding-coap/src/coap-server.ts +++ b/packages/binding-coap/src/coap-server.ts @@ -436,7 +436,7 @@ export default class CoapServer implements ProtocolServer { private async handleRequest(req: IncomingMessage, res: OutgoingMessage) { const sourcePort = req.rsinfo.port; - const hasInvalidPortRange = sourcePort < 1 || sourcePort > 65535; + const hasInvalidPortRange = sourcePort < 1 || sourcePort > 65535; if (hasInvalidPortRange) { // Ignore requests with an invalid source port // See https://github.com/eclipse-thingweb/node-wot/issues/1182