From 426b969c99e2b30a76a6b6c1627fd36b0f2f78b4 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Mon, 30 Jun 2008 20:40:09 +0300 Subject: this fixes a problem in srptool, where the passwords never match (--verify check) on some architectures (patch by Matthias Koenig ) --- src/crypt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/crypt.c b/src/crypt.c index cb982b08fe..f6a49a701e 100644 --- a/src/crypt.c +++ b/src/crypt.c @@ -218,6 +218,7 @@ _verify_passwd_int (const char *username, const char *passwd, /* encode the verifier into _salt */ salt_size = sizeof (_salt); + memset(_salt, 0, salt_size); if (gnutls_srp_base64_encode (&new_verifier, _salt, &salt_size) < 0) { fprintf (stderr, "Encoding error\n"); -- cgit v1.2.1