You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by se...@apache.org on 2008/03/05 21:38:52 UTC

svn commit: r634019 - /webservices/axis2/trunk/c/util/src/url.c

Author: senaka
Date: Wed Mar  5 12:38:49 2008
New Revision: 634019

URL: http://svn.apache.org/viewvc?rev=634019&view=rev
Log:
The port of a url is defined only if there is a host

Modified:
    webservices/axis2/trunk/c/util/src/url.c

Modified: webservices/axis2/trunk/c/util/src/url.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/src/url.c?rev=634019&r1=634018&r2=634019&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/src/url.c (original)
+++ webservices/axis2/trunk/c/util/src/url.c Wed Mar  5 12:38:49 2008
@@ -53,11 +53,15 @@
     url->protocol = axutil_strdup(env, protocol);
     url->server = NULL;
     url->path = NULL;
-    url->port = port;
 
     if (server)
     {
         url->server = (axis2_char_t *) axutil_strdup(env, server);
+        url->port = port;
+    }
+    else
+    {
+        url->port = 0;
     }
 
     /** if the path is not starting with / we have to make it so



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org