From 407a3c80b6c1a24a8bf9e6f2df8b0cceefe2347b Mon Sep 17 00:00:00 2001 From: tcocagne Date: Mon, 29 Oct 2012 22:58:47 -0500 Subject: Fixed data structure initialiation bug reported by kaliuga --- srp/_srp.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'srp/_srp.c') diff --git a/srp/_srp.c b/srp/_srp.c index 45df613..c2341d6 100644 --- a/srp/_srp.c +++ b/srp/_srp.c @@ -712,6 +712,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; -- cgit v1.2.3