summaryrefslogtreecommitdiff
path: root/sample/sample-plugins/keying-material-exporter-demo/keyingmaterialexporter.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-10-02 06:57:04 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-10-02 06:57:04 +0200
commita6daf938f5f616a4a67caa6580b0c99e9a8c3779 (patch)
tree4b23e4201976a2324b6bbd7e5ae3a9f78bbac417 /sample/sample-plugins/keying-material-exporter-demo/keyingmaterialexporter.c
parent9683f890944ffb114f5f8214f694e0b339cf5a5a (diff)
New upstream version 2.4.4upstream/2.4.4
Diffstat (limited to 'sample/sample-plugins/keying-material-exporter-demo/keyingmaterialexporter.c')
-rw-r--r--sample/sample-plugins/keying-material-exporter-demo/keyingmaterialexporter.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sample/sample-plugins/keying-material-exporter-demo/keyingmaterialexporter.c b/sample/sample-plugins/keying-material-exporter-demo/keyingmaterialexporter.c
index 226eea6..c483907 100644
--- a/sample/sample-plugins/keying-material-exporter-demo/keyingmaterialexporter.c
+++ b/sample/sample-plugins/keying-material-exporter-demo/keyingmaterialexporter.c
@@ -142,9 +142,8 @@ session_user_set(struct session *sess, X509 *x509)
{
continue;
}
- /* bug in OpenSSL 0.9.6b ASN1_STRING_to_UTF8 requires this workaround */
- unsigned char *buf = (unsigned char *)1;
- if (ASN1_STRING_to_UTF8(&buf, val) <= 0)
+ unsigned char *buf = NULL;
+ if (ASN1_STRING_to_UTF8(&buf, val) < 0)
{
continue;
}