diff --git a/doc/xml/release.xml b/doc/xml/release.xml
index 9acd74ba8..6f877f1d1 100644
--- a/doc/xml/release.xml
+++ b/doc/xml/release.xml
@@ -29,6 +29,10 @@
Add separate archive-push-async command.
+
+ Fix incorrect buffer size used in cryptoHashOne()
.
+
+
Add CIFS storage driver.
diff --git a/src/common/crypto/hash.c b/src/common/crypto/hash.c
index f1abf97b3..2fd8f2ae5 100644
--- a/src/common/crypto/hash.c
+++ b/src/common/crypto/hash.c
@@ -278,7 +278,7 @@ cryptoHashOne(const String *type, Buffer *message)
ASSERT(type != NULL);
ASSERT(message != NULL);
- FUNCTION_TEST_RETURN(cryptoHashOneC(type, bufPtr(message), bufSize(message)));
+ FUNCTION_TEST_RETURN(cryptoHashOneC(type, bufPtr(message), bufUsed(message)));
}
/***********************************************************************************************************************************