]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Align reliable_free with other free methods to accept NULL
authorArne Schwabe <arne@rfc2549.org>
Fri, 23 Oct 2020 11:34:29 +0000 (13:34 +0200)
committerGert Doering <gert@greenie.muc.de>
Sat, 24 Oct 2020 19:44:59 +0000 (21:44 +0200)
commit2c8a9877617727438cdd874ecd38c04adebf53ad
tree4aec83758af0dbe811b4f5f8d06b61167dad6126
parent0d5aab889b0209cab9bb65f8bebf2adab5b1ff52
Align reliable_free with other free methods to accept NULL

The semantic of most free methods is to free a pointer and all its
contents and also free the pointer itself. Align reliable_free to this
semantic.

Also clean up the other free uses in key_state_free.

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20201023113431.26691-3-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg21215.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/reliable.c
src/openvpn/reliable.h
src/openvpn/ssl.c