From cbe7c5c61763d07cc395f12ec089152ac3585956 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Tue, 13 Jun 2017 10:02:33 +0200 Subject: [PATCH] lib: correct typo in createSecureContext Minor correction in the comment regarding ssl_set_pkey. PR-URL: https://github.com/nodejs/node/pull/13653 Reviewed-By: Vse Mozhet Byt Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: Evan Lucas Reviewed-By: Gibson Fahnestock Reviewed-By: James M Snell --- lib/_tls_common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/_tls_common.js b/lib/_tls_common.js index 2f0b17b111a420..afcc5bc5fa2f96 100644 --- a/lib/_tls_common.js +++ b/lib/_tls_common.js @@ -91,7 +91,7 @@ exports.createSecureContext = function createSecureContext(options, context) { } // NOTE: It is important to set the key after the cert. - // `ssl_set_pkey` returns `0` when the key does not much the cert, but + // `ssl_set_pkey` returns `0` when the key does not match the cert, but // `ssl_set_cert` returns `1` and nullifies the key in the SSL structure // which leads to the crash later on. if (options.key) {