[evolution/webkit: 182/182] Fix potential crash in digest formatter



commit 1ac050c5736e9469ea68be21eab6bb5da25a8d94
Author: Dan VrÃtil <dvratil redhat com>
Date:   Tue Mar 6 17:06:53 2012 +0100

    Fix potential crash in digest formatter

 em-format/em-format.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/em-format/em-format.c b/em-format/em-format.c
index 4ceb051..8c21bcf 100644
--- a/em-format/em-format.c
+++ b/em-format/em-format.c
@@ -730,7 +730,8 @@ emf_parse_multipart_digest (EMFormat *emf,
 		}
 
 		handler = em_format_find_handler (emf, "message/rfc822");
-		handler->parse_func (emf, subpart, part_id, info, cancellable);
+		if (handler && handler->parse_func)
+			handler->parse_func (emf, subpart, part_id, info, cancellable);
 
 		g_string_truncate (part_id, len);
 	}



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