Bugfix: Don't test for NULL pointer of fixed sized character array.
authorBjoern Sikora <bjoern.sikora@intra2net.com>
Mon, 21 Sep 2009 09:32:37 +0000 (11:32 +0200)
committerBjoern Sikora <bjoern.sikora@intra2net.com>
Mon, 21 Sep 2009 09:32:37 +0000 (11:32 +0200)
src/util.cpp

index 96cd7e7..c3132bd 100644 (file)
@@ -56,7 +56,7 @@ std::string compute_md5_digest(std::string data) throw (std::invalid_argument)
     EVP_DigestFinal_ex(&mdctx, md_value, &md_len);
 
     // Test if md_value is filled correctly and md_len is not zero.
-    if ( (md_len == 0) || (md_value == NULL) || (EVP_MD_CTX_size(&mdctx) == 0) )
+    if ( (md_len == 0) || (EVP_MD_CTX_size(&mdctx) == 0) )
         throw std::invalid_argument("Retrieved invalid digest value");
 
     // Internal cleanup of the digest content.