summaryrefslogtreecommitdiff
path: root/src/mongo/crypto/hash_block.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/crypto/hash_block.h')
-rw-r--r--src/mongo/crypto/hash_block.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/crypto/hash_block.h b/src/mongo/crypto/hash_block.h
index 4d408e9d5e7..01726fdb6f4 100644
--- a/src/mongo/crypto/hash_block.h
+++ b/src/mongo/crypto/hash_block.h
@@ -81,7 +81,9 @@ public:
* Computes a hash of 'input' from multiple contigous buffers.
*/
static HashBlock computeHash(std::initializer_list<ConstDataRange> input) {
- return HashBlock{Traits::computeHash(input)};
+ HashBlock ret;
+ Traits::computeHash(input, &(ret._hash));
+ return ret;
}
/**