Skip to content

Commit 47923ca

Browse files
committed
squash: round 2 of feedback
1 parent d53bb6a commit 47923ca

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

lib/_tls_wrap.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,14 @@ function requestOCSP(socket, info) {
155155

156156
let ctx = socket._handle.sni_context;
157157

158-
if (!ctx)
158+
if (!ctx) {
159159
ctx = socket.server._sharedCreds;
160160

161-
// TLS socket is using a `net.Server` instead of a tls.TLSServer.
162-
// Some TLS properties like `server._sharedCreds` will not be present
163-
if (!ctx)
164-
return requestOCSPDone(socket);
161+
// TLS socket is using a `net.Server` instead of a tls.TLSServer.
162+
// Some TLS properties like `server._sharedCreds` will not be present
163+
if (!ctx)
164+
return requestOCSPDone(socket);
165+
}
165166

166167
// TODO(indutny): eventually disallow raw `SecureContext`
167168
if (ctx.context)

0 commit comments

Comments
 (0)