Skip to content

Commit e8d9bae

Browse files
committed
Provide default object for _tlsOptions
1 parent 3b88dc6 commit e8d9bae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/_tls_wrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ function TLSSocket(socket, options) {
179179
if (socket)
180180
this._connecting = socket._connecting;
181181

182-
this._tlsOptions = options;
182+
this._tlsOptions = options || {};
183183
this._secureEstablished = false;
184184
this._securePending = false;
185185
this._newSessionPending = false;

0 commit comments

Comments
 (0)