Skip to content

Commit

Permalink
squash: add check of return value
Browse files Browse the repository at this point in the history
  • Loading branch information
danbev committed Dec 7, 2017
1 parent 1995452 commit 0a1bfc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_crypto.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5107,7 +5107,7 @@ void DiffieHellman::SetKey(const v8::FunctionCallbackInfo<v8::Value>& args,
BN_bin2bn(reinterpret_cast<unsigned char*>(Buffer::Data(args[0])),
Buffer::Length(args[0]), nullptr);
CHECK_NE(num, nullptr);
USE(set_field(dh->dh, num));
CHECK_EQ(1, set_field(dh->dh, num));
}


Expand Down

0 comments on commit 0a1bfc1

Please sign in to comment.