From: Hubert Kario Date: Fri, 29 Sep 2017 11:27:32 +0000 (+0200) Subject: doc: BN_free() is NULL-safe X-Git-Tag: OpenSSL_1_0_2m~23 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=20d2aaf22e54d07ead144c5e79fdaf6903cdbf2d;p=oweals%2Fopenssl.git doc: BN_free() is NULL-safe document that parameter to BN_free can be NULL backport from master Reviewed-by: Richard Levitte Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/4439) --- diff --git a/doc/crypto/BN_new.pod b/doc/crypto/BN_new.pod index ab7a105e3a..413a1ea842 100644 --- a/doc/crypto/BN_new.pod +++ b/doc/crypto/BN_new.pod @@ -30,6 +30,7 @@ to the value 0. BN_free() frees the components of the B, and if it was created by BN_new(), also the structure itself. BN_clear_free() additionally overwrites the data before the memory is returned to the system. +If B is NULL, nothing is done. =head1 RETURN VALUES