Blob Blame History Raw
commit 234791233b71ae24d020ec5379069f5dd8c1f15d
Author: Milan Crha <mcrha@redhat.com>
Date:   Fri Dec 12 14:11:04 2014 +0100

    Bug 741434 - Use-after-free after error in GPG signature verification

diff --git a/camel/camel-gpg-context.c b/camel/camel-gpg-context.c
index 8c3104b..ea2cb84 100644
--- a/camel/camel-gpg-context.c
+++ b/camel/camel-gpg-context.c
@@ -1889,6 +1889,7 @@ gpg_verify_sync (CamelCipherContext *context,
 
 	g_object_unref (filter);
 	g_object_unref (istream);
+	istream = NULL;
 
 	g_seekable_seek (G_SEEKABLE (canon_stream), 0, G_SEEK_SET, NULL, NULL);