diff options
author | Nikos Mavrogiannopoulos <nmav@crystal.(none)> | 2008-06-30 20:40:09 +0300 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@crystal.(none)> | 2008-06-30 20:41:22 +0300 |
commit | 868af69270d9842a048719aadd0d6348988b4913 (patch) | |
tree | 438e3fb5195c68e88be35cb67a08316d6c52ad64 | |
parent | 1461b184726f643b22e2567bbfa6ffaffdb9868a (diff) | |
download | gnutls-868af69270d9842a048719aadd0d6348988b4913.tar.gz |
this fixes a problem in srptool, where the passwords never match
(--verify check) on some architectures (patch by Matthias Koenig <mkoenig@suse.de>)
-rw-r--r-- | src/crypt.c | 1 |
1 files changed, 1 insertions, 0 deletions
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"); |