Skip to content

Commit 5eb11ba

Browse files
danbevMylesBorins
authored andcommitted
lib: correct typo in createSecureContext
Minor correction in the comment regarding ssl_set_pkey. PR-URL: #13653 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent a5f3b6f commit 5eb11ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/_tls_common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ exports.createSecureContext = function createSecureContext(options, context) {
7171
}
7272

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

0 commit comments

Comments
 (0)