From 0d0eb3b5d23818f2f37e1c6f3754929d74913693 Mon Sep 17 00:00:00 2001 From: Jeffrey Paul Date: Fri, 8 Apr 2016 14:54:07 +0200 Subject: [PATCH] Defensive check for process.config.variables --- lib/_tls_wrap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/_tls_wrap.js b/lib/_tls_wrap.js index e340e4a041b6ee..fd17a8fe4d4d7d 100644 --- a/lib/_tls_wrap.js +++ b/lib/_tls_wrap.js @@ -19,7 +19,7 @@ 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);