aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorVivek Jain <jvivek@novell.com>2005-07-14 21:46:03 +0800
committerJain Vivek <jvivek@src.gnome.org>2005-07-14 21:46:03 +0800
commitcb35d98e197dd6ba885cb5441af2f81f62c88855 (patch)
tree178977f84f158c5949ea09617bf78bd33918ec8a /plugins
parent61bc789ba5cf646b27cfb0beb3be706fe1ad4200 (diff)
downloadgsoc2013-evolution-cb35d98e197dd6ba885cb5441af2f81f62c88855.tar.gz
gsoc2013-evolution-cb35d98e197dd6ba885cb5441af2f81f62c88855.tar.zst
gsoc2013-evolution-cb35d98e197dd6ba885cb5441af2f81f62c88855.zip
NULL checks before we do anything else here (quite likely to be NULL)
2005-07-14 Vivek Jain <jvivek@novell.com> * proxy.c: (proxy_commit),(proxy_abort): NULL checks before we do anything else here (quite likely to be NULL) **Fixes #310347 svn path=/trunk/; revision=29771
Diffstat (limited to 'plugins')
-rw-r--r--plugins/proxy/ChangeLog6
-rw-r--r--plugins/proxy/proxy.c8
2 files changed, 13 insertions, 1 deletions
diff --git a/plugins/proxy/ChangeLog b/plugins/proxy/ChangeLog
index 34edb99542..bea51d3d30 100644
--- a/plugins/proxy/ChangeLog
+++ b/plugins/proxy/ChangeLog
@@ -1,3 +1,9 @@
+2005-07-14 Vivek Jain <jvivek@novell.com>
+
+ * proxy.c: (proxy_commit),(proxy_abort):
+ NULL checks before we do anything else here (quite likely to be NULL)
+ **Fixes #310347
+
2005-07-13 Tor Lillqvist <tml@novell.com>
* Makefile.am (LIBADD): Link with libeutil.
diff --git a/plugins/proxy/proxy.c b/plugins/proxy/proxy.c
index 9299c6685f..4f9d5f31ef 100644
--- a/plugins/proxy/proxy.c
+++ b/plugins/proxy/proxy.c
@@ -488,6 +488,9 @@ proxy_abort (GtkWidget *button, EConfigHookItemFactoryData *data)
account = target_account->account;
prd = g_object_get_data ((GObject *)account, "prd");
proxy_list = (GList *) g_object_get_data ((GObject *) account, "proxy_dialog");
+
+ if (prd == NULL || proxy_list == NULL)
+ return;
g_list_foreach (proxy_list, (GFunc) free_proxy_handler, NULL);
g_list_free (proxy_list);
@@ -507,9 +510,12 @@ proxy_commit (GtkWidget *button, EConfigHookItemFactoryData *data)
target_account = (EMConfigTargetAccount *)data->config->target;
account = target_account->account;
prd = g_object_get_data ((GObject *)account, "prd");
- priv = prd->priv;
l = g_object_get_data ( (GObject *)account, "proxy_list") ;
+ if (prd == NULL || l == NULL)
+ return;
+
+ priv = prd->priv;
for (;l; l = g_list_next (l)) {
aclInstance = (proxyHandler *) l->data;