From 380aa56d0e31fddd33b9623139bfa17c7cec21cd Mon Sep 17 00:00:00 2001 From: Ben Kibbey Date: Sat, 24 Jan 2009 12:33:53 -0500 Subject: [PATCH] Fixed tls_init() not initializing the SHA-1 hash size of the fingerprint which would result in an invalid fingerprint. --- src/tls.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tls.c b/src/tls.c index 538ade26..85dfa029 100644 --- a/src/tls.c +++ b/src/tls.c @@ -49,6 +49,7 @@ static gchar *tls_fingerprint(gnutls_session_t ses) if (count) { gnutls_x509_crt_import(crt, &cert_list[0], GNUTLS_X509_FMT_DER); + len = sizeof(buf); gnutls_x509_crt_get_fingerprint(crt, GNUTLS_MAC_SHA1, buf, &len); } -- 2.11.4.GIT