diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 0dc0c8f3eee..fa4c1e97669 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -2853,16 +2853,12 @@ class Hmac : public ObjectWrap { HandleScope scope; unsigned char* md_value = NULL; - unsigned int md_len = -1; + unsigned int md_len = 0; char* md_hexdigest; int md_hex_len; - Local outString ; + Local outString; int r = hmac->HmacDigest(&md_value, &md_len); - - assert(md_value != NULL); - assert(md_len != -1); - if (md_len == 0 || r == 0) { return scope.Close(String::New("")); }