Fixed datastructure initialization bug reported by kaliyuga
parent
270d1bf303
commit
9de5d1a3f9
2
srp.c
2
srp.c
|
@ -710,6 +710,8 @@ struct SRPUser * srp_user_new( SRP_HashAlgorithm alg, SRP_NGType ng_type, const
|
||||||
memcpy((char *)usr->username, username, ulen);
|
memcpy((char *)usr->username, username, ulen);
|
||||||
memcpy((char *)usr->password, bytes_password, len_password);
|
memcpy((char *)usr->password, bytes_password, len_password);
|
||||||
|
|
||||||
|
usr->authenticated = 0;
|
||||||
|
|
||||||
usr->bytes_A = 0;
|
usr->bytes_A = 0;
|
||||||
|
|
||||||
return usr;
|
return usr;
|
||||||
|
|
Loading…
Reference in New Issue