2007-10-18 [colin] 3.0.2cvs89
authorColin Leroy <colin@colino.net>
Thu, 18 Oct 2007 17:28:57 +0000 (17:28 +0000)
committerColin Leroy <colin@colino.net>
Thu, 18 Oct 2007 17:28:57 +0000 (17:28 +0000)
* src/common/ssl_certificate.c
Fix missing initialisations

ChangeLog
PATCHSETS
configure.ac
src/common/ssl_certificate.c

index 5130c60752cadd88dc623858388ee260983347fa..f77d0e2544c7b1c52061e7b74e0b7fc39c10b96c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-10-18 [colin]     3.0.2cvs89
+
+       * src/common/ssl_certificate.c
+               Fix missing initialisations
+
 2007-10-18 [wwp]       3.0.2cvs88
 
        * src/Makefile.am
index 7b03d04163ae90d5051a4ef64c42f0a9566d40a7..bfa906c6270b662353bf3219e68c1517f78476a7 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.5.12.11 -r 1.5.12.12 src/editbook.c;  cvs diff -u -r 1.13.2.23 -r 1.13.2.24 src/import.c;  cvs diff -u -r 1.105.2.113 -r 1.105.2.114 src/prefs_account.c;  cvs diff -u -r 1.1.2.20 -r 1.1.2.21 src/prefs_receive.c;  cvs diff -u -r 1.4.2.55 -r 1.4.2.56 src/gtk/about.c;  cvs diff -u -r 1.1.2.27 -r 1.1.2.28 src/plugins/bogofilter/bogofilter_gtk.c;  cvs diff -u -r 1.23.2.43 -r 1.23.2.44 src/plugins/spamassassin/spamassassin_gtk.c;  ) > 3.0.2cvs86.patchset
 ( cvs diff -u -r 1.53.2.31 -r 1.53.2.32 po/POTFILES.in;  ) > 3.0.2cvs87.patchset
 ( cvs diff -u -r 1.155.2.79 -r 1.155.2.80 src/Makefile.am;  ) > 3.0.2cvs88.patchset
+( cvs diff -u -r 1.4.2.21 -r 1.4.2.22 src/common/ssl_certificate.c;  ) > 3.0.2cvs89.patchset
index 7a3f77fb13a257fd41334c648a4b993bed4d8bfa..b664104db18ef460a8a15ca7227647331930155c 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=0
 MICRO_VERSION=2
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=88
+EXTRA_VERSION=89
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index 7bdfc5fd80c26106be9c1ac678db0f93ce2c1cb3..3ff1ddac71e260be6b0f1c355c7132609df0f447 100644 (file)
@@ -232,11 +232,11 @@ static SSLCertificate *ssl_certificate_new_lookup(gnutls_x509_crt x509_cert, gch
 static void i2d_X509_fp(FILE *fp, gnutls_x509_crt x509_cert)
 {
        char output[10*1024];
-       size_t cert_size;
+       size_t cert_size = 10*1024;
        int r;
        
        if ((r = gnutls_x509_crt_export(x509_cert, GNUTLS_X509_FMT_DER, output, &cert_size)) < 0) {
-               g_warning("couldn't export cert %s\n", gnutls_strerror(r));
+               g_warning("couldn't export cert %s (%d)\n", gnutls_strerror(r), cert_size);
                return;
        }
        debug_print("writing %zd bytes\n",cert_size);
@@ -418,7 +418,7 @@ static gboolean ssl_certificate_compare (SSLCertificate *cert_a, SSLCertificate
 #else
        char *output_a;
        char *output_b;
-       size_t cert_size_a, cert_size_b;
+       size_t cert_size_a = 0, cert_size_b = 0;
        int r;
 
        if (cert_a == NULL || cert_b == NULL)