From fbf2c7b570b2824e347bb5060942ee2b780b1d40 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Tue, 3 Dec 2024 14:35:56 +0000 Subject: [PATCH] Update 05-tls.js --- packages/node_modules/@node-red/nodes/core/network/05-tls.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/node_modules/@node-red/nodes/core/network/05-tls.js b/packages/node_modules/@node-red/nodes/core/network/05-tls.js index 5a3147af6..0c588fc66 100644 --- a/packages/node_modules/@node-red/nodes/core/network/05-tls.js +++ b/packages/node_modules/@node-red/nodes/core/network/05-tls.js @@ -32,8 +32,7 @@ module.exports = function(RED) { this.alpnprotocol = (n.alpnprotocol||"").trim(); if ((certPath && certPath.length > 0) || (keyPath && keyPath.length > 0) || (caPath && caPath.length > 0)) { - - if ( (certPath.length > 0) !== (keyPath.length > 0)) { + if ( (certPath && certPath.length > 0) !== (keyPath && keyPath.length > 0)) { this.valid = false; this.error(RED._("tls.error.missing-file")); return;