[evolution-patches] Exchange: Fix for bug 314588



Hello -

Attached patch fixes the bug 314588 that caused Evolution to crash
during account setup if a URL without hostname part is entered. Please
review.

PS: This will find its way only to 2.4.1

Thanks -
Praveen.

Index: servers/exchange/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/servers/exchange/ChangeLog,v
retrieving revision 1.29
diff -u -p -r1.29 ChangeLog
--- servers/exchange/ChangeLog	25 Aug 2005 14:29:59 -0000	1.29
+++ servers/exchange/ChangeLog	5 Sep 2005 12:10:57 -0000
@@ -1,3 +1,10 @@
+2005-09-05  Praveen Kumar  <kpraveen novell com>
+
+	** Fixes bug 314588.
+	
+	* lib/e2k-context.c (e2k_context_new) : Modified the constructor 
+	to return NULL if there is no host name in the SOUP URI.
+	
 2005-08-25  Arunprakash  <arunp novell com>
 
 	* storage/exchange-account.c (init) : set the default linestatus
Index: servers/exchange/lib/e2k-context.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/servers/exchange/lib/e2k-context.c,v
retrieving revision 1.4
diff -u -p -r1.4 e2k-context.c
--- servers/exchange/lib/e2k-context.c	31 Aug 2005 04:26:08 -0000	1.4
+++ servers/exchange/lib/e2k-context.c	5 Sep 2005 12:10:58 -0000
@@ -280,6 +280,11 @@ e2k_context_new (const char *uri)
 	suri = soup_uri_new (uri);
 	if (!suri)
 		return NULL;
+	
+	if (!suri->host) {
+		soup_uri_free (suri);
+		return NULL;
+	}
 
 	ctx = g_object_new (E2K_TYPE_CONTEXT, NULL);
 	ctx->priv->owa_uri = g_strdup (uri);


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