]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Handle NULL returns from calloc() in sample plugins.
authorGert Doering <gert@greenie.muc.de>
Wed, 9 Sep 2020 10:48:37 +0000 (12:48 +0200)
committerGert Doering <gert@greenie.muc.de>
Fri, 11 Sep 2020 17:42:22 +0000 (19:42 +0200)
commita61c08a2c80d95dcc2bc30ddcb9a54a462e565ed
tree8905b3d2a9ed1f0785c04fcc6885e6ea547c79e6
parent8120e1ad4f20d4ec1fa9e191f3b15740c4aec448
Handle NULL returns from calloc() in sample plugins.

This is basic housekeeping, adding NULL checks to context initialization
of the sample plugin collection which are missing it.  Realistically,
this can never happen, but since these are supposed to be "good examples",
not checking calloc() return isn't one.

Trac: #587

Reported-By: Dogbert (in Trac)
Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: David Sommerseth <davids@openvpn.net>
Message-Id: <20200909104837.6123-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg20922.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
sample/sample-plugins/defer/simple.c
sample/sample-plugins/keying-material-exporter-demo/keyingmaterialexporter.c
sample/sample-plugins/log/log.c
sample/sample-plugins/log/log_v3.c
sample/sample-plugins/simple/simple.c