Fix error return value in SRP functions
authorMatt Caswell <matt@openssl.org>
Mon, 25 Apr 2016 15:22:31 +0000 (16:22 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 23 May 2016 22:55:11 +0000 (23:55 +0100)
commit308ff28673ae1a4a1b346761224b4a8851d41f58
tree87b35fa4f64e5e176d27146e1d586cced0f2e07f
parentdae00d631fdaed48d88c454864abbd6ce99c63d6
Fix error return value in SRP functions

The functions SRP_Calc_client_key() and SRP_Calc_server_key() were
incorrectly returning a valid pointer in the event of error.

Issue reported by Yuan Jochen Kang

Reviewed-by: Richard Levitte <levitte@openssl.org>
crypto/srp/srp_lib.c