From 077fd91bed34bb6226e0a43a26f9e546372db54a Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Mon, 11 Feb 2013 20:29:02 +0100 Subject: Remove unnecessary code to be more compatible with various libtasn1 versions https://bugs.freedesktop.org/show_bug.cgi?id=60434 --- common/asn1.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/common/asn1.c b/common/asn1.c index 3df56d9..4f650ee 100644 --- a/common/asn1.c +++ b/common/asn1.c @@ -165,7 +165,6 @@ p11_asn1_encode (node_asn *asn, size_t *der_len) { char message[ASN1_MAX_ERROR_DESCRIPTION_SIZE]; - struct asn1_data_node data = { NULL, }; unsigned char *der; int len; int ret; @@ -184,9 +183,7 @@ p11_asn1_encode (node_asn *asn, } if (ret != ASN1_SUCCESS) { - asn1_read_node_value (asn, &data); - p11_debug_precond ("failed to encode %s: %s\n", - data.name ? data.name : "(unknown)", message); + p11_debug_precond ("failed to encode: %s\n", message); return NULL; } -- cgit v1.1