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:02:40 +0000 (00:02 +0100)
commite117522e752478a1fbb87117e4660ee20b85acc2
treeed8f8da19386b97097acad748ad7ee615fc08509
parentd384bf39b17fa879dd91138d08105114b5a25370
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