Skip to content

Commit

Permalink
src: Add nullptr handling for NativeKeyObject
Browse files Browse the repository at this point in the history
Fixes: #56899
  • Loading branch information
wooffie committed Feb 3, 2025
1 parent 793c793 commit 2f7ef77
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 @@ -1063,6 +1063,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 2f7ef77

Please sign in to comment.