crypto: fix delete of potentially uninitialized pointer

pull/22966/head
Ben Noordhuis 2011-09-21 01:57:36 +02:00
parent b185751c3f
commit 320cf729db
1 changed files with 1 additions and 0 deletions

View File

@ -2512,6 +2512,7 @@ class Decipher : public ObjectWrap {
int out_len;
Local<Value> outString ;
out_value = NULL;
int r = cipher->DecipherFinal(&out_value, &out_len, true);
if (out_len == 0 || r == 0) {