mirror of https://github.com/nodejs/node.git
crypto: fix delete of potentially uninitialized pointer
parent
b185751c3f
commit
320cf729db
|
@ -2512,6 +2512,7 @@ class Decipher : public ObjectWrap {
|
||||||
int out_len;
|
int out_len;
|
||||||
Local<Value> outString ;
|
Local<Value> outString ;
|
||||||
|
|
||||||
|
out_value = NULL;
|
||||||
int r = cipher->DecipherFinal(&out_value, &out_len, true);
|
int r = cipher->DecipherFinal(&out_value, &out_len, true);
|
||||||
|
|
||||||
if (out_len == 0 || r == 0) {
|
if (out_len == 0 || r == 0) {
|
||||||
|
|
Loading…
Reference in New Issue