From 868af69270d9842a048719aadd0d6348988b4913 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 9058381c47..d1e82f221f 100644 --- a/src/crypt.c +++ b/src/crypt.c @@ -219,6 +219,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