Matt Caswell 5e7d583bab Make sure OPENSSL_cleanse checks for NULL
In master we have the function OPENSSL_clear_free(x,y), which immediately
returns if x == NULL. In <=1.0.2 this function does not exist so we have to
do:
OPENSSL_cleanse(x, y);
OPENSSL_free(x);

However, previously, OPENSSL_cleanse did not check that if x == NULL, so
the real equivalent check would have to be:
if (x != NULL)
    OPENSSL_cleanse(x, y);
OPENSSL_free(x);

It would be easy to get this wrong during cherry-picking to other branches
and therefore, for safety, it is best to just ensure OPENSSL_cleanse also
checks for NULL.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(cherry picked from commit 020d8fc83fe1a94232db1ee1166309e2458a8a18)
2015-09-17 22:37:21 +01:00
..
2015-04-18 14:45:38 +01:00
2015-01-22 09:52:55 +00:00
2015-06-04 09:33:01 +01:00
2015-06-11 13:07:42 +01:00
2015-01-22 09:52:55 +00:00
2015-04-16 13:54:47 -04:00
2015-04-16 13:54:47 -04:00
2015-03-19 13:47:27 +00:00
2015-01-22 09:52:55 +00:00
2008-09-16 15:11:50 +00:00
2014-10-17 14:04:08 +02:00
2015-03-08 17:23:40 +00:00
2015-01-22 09:52:55 +00:00
2015-01-22 09:52:55 +00:00
2015-01-22 09:52:55 +00:00
2015-01-22 09:52:55 +00:00
2015-01-22 09:52:55 +00:00
2015-06-11 15:23:16 +01:00
2015-03-19 13:00:45 +00:00
2015-01-22 09:52:55 +00:00