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 23:05:54 +0000 (00:05 +0100)
commit051b9604f1421fe54d10185bc5c348bd343388da
treef07833dbe3d04ca66514480a3ad79cef549902de
parenteea595ff6b554b3876bab51b2560df5fb0006696
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>
(cherry picked from commit 308ff28673ae1a4a1b346761224b4a8851d41f58)
crypto/srp/srp_lib.c