>From 185c7ae455d3f1926fcc9fc9ce5c02db9fabf6e1 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Mon, 30 May 2011 21:29:12 +0200 Subject: [PATCH 4/4] gnutls-cli: Fix uninitialized variable when PKCS#11 uris in use. * When PKCS#11 URIs are in use previously tried to free uninitialized memory. Initialize to zero. --- src/cli.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/cli.c b/src/cli.c index fbefe7f..90b0643 100644 --- a/src/cli.c +++ b/src/cli.c @@ -169,7 +169,7 @@ load_keys (void) { unsigned int crt_num; int ret, i; - gnutls_datum_t data; + gnutls_datum_t data = { NULL, 0 }; gnutls_x509_crt_t crt_list[MAX_CRT]; gnutls_pkcs11_privkey_t pkcs11_key; gnutls_x509_privkey_t tmp_key; -- 1.7.5.2