Skip to content

Commit cbe7c5c

Browse files
danbevaddaleax
authored andcommitted
lib: correct typo in createSecureContext
Minor correction in the comment regarding ssl_set_pkey. PR-URL: #13653 Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 465bd48 commit cbe7c5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/_tls_common.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ exports.createSecureContext = function createSecureContext(options, context) {
9191
}
9292

9393
// NOTE: It is important to set the key after the cert.
94-
// `ssl_set_pkey` returns `0` when the key does not much the cert, but
94+
// `ssl_set_pkey` returns `0` when the key does not match the cert, but
9595
// `ssl_set_cert` returns `1` and nullifies the key in the SSL structure
9696
// which leads to the crash later on.
9797
if (options.key) {

0 commit comments

Comments
 (0)