]> jfr.im git - solanum.git/commit
OpenSSL: Initialise one context at a time
authorAaron Jones <redacted>
Tue, 30 Aug 2016 10:30:17 +0000 (10:30 +0000)
committerAaron Jones <redacted>
Tue, 30 Aug 2016 10:30:17 +0000 (10:30 +0000)
commit572c2d4b05793f441e3c171ffa9ac9f404e8ec1f
tree297bea2d82cc62e74d39935149c86ea773ee5577
parent0942c1fc26fecaf016f11dc5ca8d48a9ab58b4ff
OpenSSL: Initialise one context at a time

If initialising the server context fails, but the client one succeeds,
we will not only leak memory, but the error message reported for
initialising the server context might not make sense, because we
initialise the client context after and that could erase or change the
list of queued errors.

This scenario is considered rare. Nevertheless, we now initialise the
client context after *successfully* initialising the server context.
librb/src/openssl.c