]> git.ipfire.org Git - thirdparty/openvpn.git/commit
sample-plugins: fix ASN1_STRING_to_UTF8 return value checks
authorSteffan Karger <steffan.karger@fox-it.com>
Fri, 28 Jul 2017 10:38:22 +0000 (12:38 +0200)
committerDavid Sommerseth <davids@openvpn.net>
Mon, 14 Aug 2017 13:10:52 +0000 (15:10 +0200)
commitc43045ca0590364552fbd060cc65ee1c50a4866a
tree0fb336046217f67dd1c1c3387b598820a11494b5
parentcd5a74d0d7c6347b31e261e98ca8984819e594df
sample-plugins: fix ASN1_STRING_to_UTF8 return value checks

As we did in 2d032c7f for the ASN1_STRING_to_UTF8() calls in the core code,
we should also free(buf) if the function returns 0.

Signed-off-by: Steffan Karger <steffan.karger@fox-it.com>
Acked-by: David Sommerseth <davids@openvpn.net>
Message-Id: <1501238302-16714-1-git-send-email-steffan.karger@fox-it.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg15161.html
Signed-off-by: David Sommerseth <davids@openvpn.net>
sample/sample-plugins/keying-material-exporter-demo/keyingmaterialexporter.c
sample/sample-plugins/log/log_v3.c