Matt Caswell 020d8fc83f 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>
2015-09-17 22:29:08 +01:00
..
2015-09-17 17:18:59 +01:00
2015-09-03 16:26:34 -04:00
2015-09-03 16:26:34 -04:00
2015-09-11 23:10:29 +01:00
2015-09-03 16:26:34 -04:00
2015-09-03 16:26:34 -04:00
2015-09-02 22:05:37 -04:00
2015-09-12 01:53:52 +01:00
2015-09-16 12:40:55 +01:00
2015-09-17 21:42:38 +02:00
2015-09-03 16:26:34 -04:00
2015-09-03 16:26:34 -04:00
2015-07-14 01:10:01 +02:00
2015-09-03 16:26:34 -04:00
2015-09-02 22:05:37 -04:00
2015-09-08 23:14:36 -04:00
2015-09-03 16:26:34 -04:00
2015-09-11 18:16:23 +01:00
2015-09-04 11:45:44 -04:00
2015-09-02 22:05:37 -04:00
2015-09-03 16:26:34 -04:00
2015-07-14 01:10:01 +02:00
2015-09-17 17:18:59 +01:00
2015-09-16 22:33:25 +01:00
2015-04-20 15:06:22 +02:00
2015-07-20 01:16:28 -04:00
2015-07-16 01:06:48 -04:00
2015-07-20 01:16:28 -04:00
2015-06-23 17:09:35 -04:00
2015-09-02 22:05:37 -04:00
2015-09-02 23:03:43 -04:00
2015-09-08 23:14:36 -04:00
2015-08-05 22:06:01 -04:00
2014-06-04 08:34:18 +02:00
2015-07-14 01:10:01 +02:00
2015-01-22 09:20:09 +00:00