Fix error handling in bn_exp
authorMatt Caswell <matt@openssl.org>
Wed, 11 Mar 2015 15:31:16 +0000 (15:31 +0000)
committerMatt Caswell <matt@openssl.org>
Thu, 12 Mar 2015 09:32:22 +0000 (09:32 +0000)
commitcc27bec2b40ca6741125cbeef6a214dfbe1f85f9
treea552b88da9a9d427e5c95c1b5df85a54fd383f5e
parentf5ee5213073870493a8ade98b13ea41a2b20b8d4
Fix error handling in bn_exp

In the event of an error |rr| could be NULL. Therefore don't assume you can
use |rr| in the error handling code.

Reviewed-by: Andy Polyakov <appro@openssl.org>
(cherry picked from commit 8c5a7b33c6269c3bd6bc0df6b4c22e4fba03b485)
crypto/bn/bn_exp.c