summaryrefslogtreecommitdiffstats
path: root/doc/man3/DH_meth_new.pod
diff options
context:
space:
mode:
authorVita Batrla <vitezslav.batrla@oracle.com>2024-06-25 11:58:49 +0200
committerTomas Mraz <tomas@openssl.org>2024-06-27 18:26:26 +0200
commit981d129a5609ee2e031367c34c67a9f61a5bfd66 (patch)
treef2ff6caa7bb8be95b3644f50302fbd5d44c5f466 /doc/man3/DH_meth_new.pod
parent214c724e00d594c3eecf4b740ee7af772f0ee04a (diff)
docs: document that *_free(NULL) does nothing
Explicitly documents that *_free(NULL) does nothing. Fixes two cases where that wasn't true. Fixes #24675. Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Sasa Nedvedicky <sashan@openssl.org> (Merged from https://github.com/openssl/openssl/pull/24735)
Diffstat (limited to 'doc/man3/DH_meth_new.pod')
-rw-r--r--doc/man3/DH_meth_new.pod2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/man3/DH_meth_new.pod b/doc/man3/DH_meth_new.pod
index 779a695167..2da003353a 100644
--- a/doc/man3/DH_meth_new.pod
+++ b/doc/man3/DH_meth_new.pod
@@ -81,7 +81,7 @@ parameter. This might be useful for creating a new B<DH_METHOD> based on an
existing one, but with some differences.
DH_meth_free() destroys a B<DH_METHOD> structure and frees up any memory
-associated with it.
+associated with it. If the argument is NULL, nothing is done.
DH_meth_get0_name() will return a pointer to the name of this DH_METHOD. This
is a pointer to the internal name string and so should not be freed by the