git://developer.intra2net.com
/
bpdyndnsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
52833f2
)
Bugfix: Don't test for NULL pointer of fixed sized character array.
author
Bjoern Sikora
<bjoern.sikora@intra2net.com>
Mon, 21 Sep 2009 09:32:37 +0000 (11:32 +0200)
committer
Bjoern Sikora
<bjoern.sikora@intra2net.com>
Mon, 21 Sep 2009 09:32:37 +0000 (11:32 +0200)
src/util.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/util.cpp
b/src/util.cpp
index
96cd7e7
..
c3132bd
100644
(file)
--- 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.