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:
parent
8203ce8316
commit
6c76140a7a
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user