diff options
author | Fabian Keil <fk@fabiankeil.de> | 2009-08-25 18:15:35 +0200 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2009-08-31 12:35:57 +0200 |
commit | 62edfa4eb29d6ed91d236312a5efa83c70c9c8cd (patch) | |
tree | 0b49fea14d1ae209e6064af8b7cab80577fb2a10 | |
parent | 1c9e7839dbd93f16a84b4a8b22e9756d059a0ef4 (diff) | |
download | gnutls-62edfa4eb29d6ed91d236312a5efa83c70c9c8cd.tar.gz |
Mark what looks like a bug in in _gnutls_srp_pwd_read_entry()
Signed-off-by: Simon Josefsson <simon@josefsson.org>
-rw-r--r-- | lib/auth_srp_passwd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/auth_srp_passwd.c b/lib/auth_srp_passwd.c index 4475abb3e9..376effda97 100644 --- a/lib/auth_srp_passwd.c +++ b/lib/auth_srp_passwd.c @@ -347,7 +347,8 @@ _gnutls_srp_pwd_read_entry (gnutls_session_t state, char *username, /* Keep the last index in memory, so we can retrieve fake parameters (g,n) * when the user does not exist. */ - last_idx = idx; + /* XXX: last_idx will not be read as both if block branches return. */ + last_idx = idx; if (pwd_read_conf (cred->password_conf_file, entry, idx) == 0) { return 0; |