evolution r36327 - trunk/plugins/sa-junk-plugin



Author: msuman
Date: Sun Sep 14 15:12:55 2008
New Revision: 36327
URL: http://svn.gnome.org/viewvc/evolution?rev=36327&view=rev

Log:
Milan Crha  <mcrha redhat com> ** Fix for bug #505016 (Check for NULL to prevent crash when error occurred).

Modified:
   trunk/plugins/sa-junk-plugin/ChangeLog
   trunk/plugins/sa-junk-plugin/em-junk-filter.c

Modified: trunk/plugins/sa-junk-plugin/em-junk-filter.c
==============================================================================
--- trunk/plugins/sa-junk-plugin/em-junk-filter.c	(original)
+++ trunk/plugins/sa-junk-plugin/em-junk-filter.c	Sun Sep 14 15:12:55 2008
@@ -594,7 +594,7 @@
 
 	rv = pipe_to_sa_full (msg, NULL, argv, 0, 1, out, &target->error) != 0;
 
-	if (!rv && out && !strcmp ((const char *)out->data, "0/0\n")) {
+	if (!rv && out && out->data && !strcmp ((const char *)out->data, "0/0\n")) {
 		/* an error occurred */
 		if (em_junk_sa_respawn_spamd ()) {
 			g_byte_array_set_size (out, 0);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]