From c8fb50b3f1a1a2a9fcd3d4d0f1c533ac30e8ffd8 Mon Sep 17 00:00:00 2001 From: Dwight Date: Tue, 10 Feb 2009 12:35:30 -0500 Subject: [PATCH] md5 bug --- client/dbclient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/dbclient.cpp b/client/dbclient.cpp index a8f3383b9ec..1d5d5eb712a 100644 --- a/client/dbclient.cpp +++ b/client/dbclient.cpp @@ -131,7 +131,7 @@ namespace mongo { md5_state_t st; md5_init(&st); md5_append(&st, (const md5_byte_t *) username, strlen(username)); - md5_append(&st, (const md5_byte_t *) ":mongo:", 5 ); + md5_append(&st, (const md5_byte_t *) ":mongo:", 7 ); md5_append(&st, (const md5_byte_t *) clearTextPassword, strlen(clearTextPassword)); md5_finish(&st, d); }