[evolution/gnome-3-20] Avoid NULL dereference in mail-send-recv.c:free_send_data() function
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-20] Avoid NULL dereference in mail-send-recv.c:free_send_data() function
- Date: Mon, 23 May 2016 11:28:34 +0000 (UTC)
commit 303442f988acda401057a2197b00a594b9a78aeb
Author: Milan Crha <mcrha redhat com>
Date: Mon May 23 13:26:06 2016 +0200
Avoid NULL dereference in mail-send-recv.c:free_send_data() function
This had been reported downstream as:
https://bugzilla.redhat.com/show_bug.cgi?id=1338561
mail/mail-send-recv.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c
index e3fe23b..4e64c5f 100644
--- a/mail/mail-send-recv.c
+++ b/mail/mail-send-recv.c
@@ -200,6 +200,9 @@ free_send_data (void)
{
struct _send_data *data = send_data;
+ if (!data)
+ return;
+
g_return_if_fail (g_hash_table_size (data->active) == 0);
if (data->inbox) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]