cocagne / csrp

Minimal C implementation of the Secure Remote Password protocol (version 6a)
MIT License
88 stars 37 forks source link

Unused result of calculation #3

Open dirkfeytons opened 11 years ago

dirkfeytons commented 11 years ago

I noticed that in srp_user_process_challenge() the variable v holds the result of g^x but v is never used. In fact, a couple lines down the same calculation is done again and the result is stored in tmp1.