Fixed datastructure initialization bug reported by kaliyuga

master
tcocagne 2012-10-29 22:53:35 -05:00
parent 270d1bf303
commit 9de5d1a3f9
1 changed files with 2 additions and 0 deletions

2
srp.c
View File

@ -709,6 +709,8 @@ struct SRPUser * srp_user_new( SRP_HashAlgorithm alg, SRP_NGType ng_type, const
memcpy((char *)usr->username, username, ulen);
memcpy((char *)usr->password, bytes_password, len_password);
usr->authenticated = 0;
usr->bytes_A = 0;