Fix bug in async_fibre_makecontext for POSIX
authorMatt Caswell <matt@openssl.org>
Sun, 11 Oct 2015 15:17:27 +0000 (16:17 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 20 Nov 2015 23:35:19 +0000 (23:35 +0000)
commit90fa7296c22583a0a42203b078979bbfb2fcb11d
treea902300b0ceb46f19602b63a095a4ea1383c5cde
parent7fecbf6f2150394bea7a3435b22cea129d05c9a9
Fix bug in async_fibre_makecontext for POSIX

async_fibre_makecontext was initialise the fibre first and then calling
getcontext(). It should be the other way around because the getcontext
call may overwrite some of the things we just initialised. This didn't
cause an issue on Linux and so the problem went unnoticed. On OS-X it
causes a crash.

Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/async/arch/async_posix.h