]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Mark what looks like a bug in in _gnutls_srp_pwd_read_entry()
authorFabian Keil <fk@fabiankeil.de>
Tue, 25 Aug 2009 16:15:35 +0000 (18:15 +0200)
committerSimon Josefsson <simon@josefsson.org>
Mon, 31 Aug 2009 10:35:57 +0000 (12:35 +0200)
Signed-off-by: Simon Josefsson <simon@josefsson.org>
lib/auth_srp_passwd.c

index 4475abb3e93d5f4feba2700966bc9f989fff434b..376effda97ac3ac75dacf91678ccbd504801a5e8 100644 (file)
@@ -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;