Commit 91c7ace2 authored by Natanael Copa's avatar Natanael Copa
Browse files

main/claws-mail: fix segfault for gnutls-3.1.3

parent ff1b2c1b
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=claws-mail
pkgver=3.8.1
pkgrel=2
pkgrel=3
pkgdesc="A GTK+ based e-mail client."
url="http://www.claws-mail.org"
arch="all"
......@@ -19,6 +19,7 @@ depends=
install=
source="http://downloads.sourceforge.net/sourceforge/sylpheed-claws/$pkgname-$pkgver.tar.bz2
libc-version.patch
gnutls313.patch
"
_builddir="$srcdir"/$pkgname-$pkgver
......@@ -89,4 +90,5 @@ smime() {
}
md5sums="d388929fb1c8f04d4bcb2139faaf9e70 claws-mail-3.8.1.tar.bz2
f3416743b5d8ff97b5a3cc2f7efc2dc1 libc-version.patch"
f3416743b5d8ff97b5a3cc2f7efc2dc1 libc-version.patch
21bdc9d324f9424e0071bb73be169977 gnutls313.patch"
diff --git a/src/common/ssl_certificate.c b/src/common/ssl_certificate.c
index efc5c53..8303f3e 100644
--- a/src/common/ssl_certificate.c
+++ b/src/common/ssl_certificate.c
@@ -92,6 +92,7 @@
size_t size;
gnutls_datum tmp;
gnutls_x509_crt dest;
+ size = 0;
if (gnutls_x509_crt_init(&dest) != 0) {
g_warning("couldn't gnutls_x509_crt_init\n");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment