]> 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:52 +0000 (19:42 +0200)
commit5382bdbfbfb9ac26c7c75bc967af86db352b54b3
tree2c19eb988abc0b13043ec6be18a2e161bd6aa14c
parenta4c03b46b24f952489a6ad19a434f2dff13d1276
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>
(cherry picked from commit a61c08a2c80d95dcc2bc30ddcb9a54a462e565ed)
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