** Fixes bug 314588.
authorPraveen Kumar <kpraveen@novell.com>
Fri, 23 Sep 2005 10:57:04 +0000 (10:57 +0000)
committerPraveen Kumar <kpraveen@src.gnome.org>
Fri, 23 Sep 2005 10:57:04 +0000 (10:57 +0000)
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.

servers/exchange/ChangeLog
servers/exchange/lib/e2k-context.c

index 19d94db..44e9dd5 100644 (file)
@@ -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-09-14  Irene Huang  <Irene.Huang@sun.com>
 
        Fix for bug #316274
index 5707081..ecf310d 100644 (file)
@@ -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);