From 663ec44b8ca4f7de4ca9787c3a813191c6fd444c Mon Sep 17 00:00:00 2001 From: Jeffrey Paul Date: Fri, 8 Apr 2016 17:52:57 +0200 Subject: [PATCH] Defensive fix for process.config.variables regression --- lib/_tls_wrap.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/_tls_wrap.js b/lib/_tls_wrap.js index 7516c4c9b11c0b..bf8c097aa876ae 100644 --- a/lib/_tls_wrap.js +++ b/lib/_tls_wrap.js @@ -19,7 +19,9 @@ const defaultSessionIdContext = getDefaultSessionIdContext(); function getDefaultSessionIdContext() { var defaultText = process.argv.join(' '); /* SSL_MAX_SID_CTX_LENGTH is 128 bits */ - if (process.config.variables.openssl_fips) { + if (process.config && + process.config variables && + process.config.variables.openssl_fips) { return crypto.createHash('sha1') .update(defaultText) .digest('hex').slice(0, 32);