Backport of commit 6b49b30811f4afa0340342af9400b8d0357b5291
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Tue, 3 Apr 2018 21:47:10 +0000 (23:47 +0200)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Fri, 15 Jun 2018 11:21:42 +0000 (13:21 +0200)
commit1eeb882e3309eac9248e6b998fcb8a0fef42126b
treeda16898ccae31cdb914dc2dbeb56e05321935ff9
parent0c27d793745c7837b13646302b6890a556b7017a
Backport of commit 6b49b30811f4afa0340342af9400b8d0357b5291

Prevent a possible recursion in ERR_get_state and fix the problem that
was pointed out in commit aef84bb4efbddfd95d042f3f5f1d362ed7d4faeb
differently.

Fixes: #6493

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6494)
crypto/err/err.c