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:29:48 +0000 (09:29 +0000)
commit8944d10e2d444b7fc5e60d4f13644c6648f49e74
treeac96a4f44858642b7bb041c89681ad52182dca73
parentdf57e42baa0c1c8a97035adb9ffb2f335158c440
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