From: Bjoern Sikora Date: Mon, 21 Sep 2009 09:32:37 +0000 (+0200) Subject: Bugfix: Don't test for NULL pointer of fixed sized character array. X-Git-Tag: v1.1~173 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=1f0d13b901887129fbea47a7d3996e075615d643;p=bpdyndnsd Bugfix: Don't test for NULL pointer of fixed sized character array. --- diff --git a/src/util.cpp b/src/util.cpp index 96cd7e7..c3132bd 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -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.