From 0a1bfc14c024ed8c721416d217357c55332472f5 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Thu, 7 Dec 2017 07:44:08 +0100 Subject: [PATCH] squash: add check of return value --- src/node_crypto.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 43768c42cf13b2..04fd9bf9568bf0 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -5107,7 +5107,7 @@ void DiffieHellman::SetKey(const v8::FunctionCallbackInfo& args, BN_bin2bn(reinterpret_cast(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)); }