Skip to content

Commit

Permalink
src: add nullptr handling for NativeKeyObject
Browse files Browse the repository at this point in the history
Fixes: #56899
PR-URL: #56900
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Filip Skokan <[email protected]>
  • Loading branch information
wooffie authored Feb 10, 2025
1 parent 03e9adf commit c5c71b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/crypto/crypto_keys.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1045,6 +1045,7 @@ void NativeKeyObject::New(const FunctionCallbackInfo<Value>& args) {
CHECK_EQ(args.Length(), 1);
CHECK(args[0]->IsObject());
KeyObjectHandle* handle = Unwrap<KeyObjectHandle>(args[0].As<Object>());
CHECK_NOT_NULL(handle);
new NativeKeyObject(env, args.This(), handle->Data());
}

Expand Down

0 comments on commit c5c71b2

Please sign in to comment.