[evolution-patches] patch for #53586 calendar



Hi,
When a SoupUri is created from an uri of the form file:/foo, the host
member of SoupUri can be NULL. itip_publish_comp function froms
soup_message without checking for NULL and tries to send using
soup-session thus resultinh in crash. Attached one liner fixes this .

Thanks,
Siva
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2396
diff -u -r1.2396 ChangeLog
--- ChangeLog	16 Jun 2004 16:11:09 -0000	1.2396
+++ ChangeLog	17 Jun 2004 14:33:43 -0000
@@ -1,3 +1,10 @@
+2004-06-17 Sivaiah Nallagatla <snallagatla novell com>
+
+	* gui/itip-utils.c (itip_publish_comp) : check for
+	host being non-NULL in soup uri. host can be null
+	for uri's of the form file:/foo or http:/foo etc 
+
+	
 2004-06-16  Rodrigo Moya <rodrigo novell com>
 
 	* gui/e-itip-control.c: use e-util's HTML conversion function,
Index: gui/itip-utils.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/itip-utils.c,v
retrieving revision 1.89
diff -u -r1.89 itip-utils.c
--- gui/itip-utils.c	10 Apr 2004 21:31:37 -0000	1.89
+++ gui/itip-utils.c	17 Jun 2004 14:33:43 -0000
@@ -1153,7 +1153,7 @@
 	session = soup_session_async_new ();
 
 	real_uri = soup_uri_new (uri);
-	if (!real_uri) {
+	if (!real_uri || !real_uri->host) {
 		g_warning (G_STRLOC ": Invalid URL: %s", uri);
 		g_object_unref (session);
 		return FALSE;


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