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:40:09 +0300 |
commit | 426b969c99e2b30a76a6b6c1627fd36b0f2f78b4 (patch) | |
tree | 600cf809e0990e1704e89160cd914e7e99604a7f /src | |
parent | 1c5c67235547d751cb69dbf1f13427dbb9eb3093 (diff) | |
download | gnutls-426b969c99e2b30a76a6b6c1627fd36b0f2f78b4.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>)
Diffstat (limited to 'src')
-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 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"); |