0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00

src: fix SetClientCertEngine() nullptr dereference

Introduced in commit 6ee985f311 ("tls: implement clientCertEngine
option") which was merged November 11.

PR-URL: https://github.com/nodejs/node/pull/16965
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Ben Noordhuis 2017-11-12 15:16:36 +01:00
parent 8203ce8316
commit 6c76140a7a

View File

@ -1341,7 +1341,8 @@ void SecureContext::SetClientCertEngine(
CHECK_EQ(args.Length(), 1);
CHECK(args[0]->IsString());
SecureContext* sc = Unwrap<SecureContext>(args.This());
SecureContext* sc;
ASSIGN_OR_RETURN_UNWRAP(&sc, args.Holder());
MarkPopErrorOnReturn mark_pop_error_on_return;