You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by se...@apache.org on 2008/03/03 17:09:10 UTC
svn commit: r633152 - /webservices/axis2/trunk/c/util/src/uri.c
Author: senaka
Date: Mon Mar 3 08:09:09 2008
New Revision: 633152
URL: http://svn.apache.org/viewvc?rev=633152&view=rev
Log:
Fixing JIRA Issue AXIS2C-1027
Modified:
webservices/axis2/trunk/c/util/src/uri.c
Modified: webservices/axis2/trunk/c/util/src/uri.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/src/uri.c?rev=633152&r1=633151&r2=633152&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/src/uri.c (original)
+++ webservices/axis2/trunk/c/util/src/uri.c Mon Mar 3 08:09:09 2008
@@ -431,6 +431,10 @@
s = axutil_memchr(hostinfo, ']', uri_str - hostinfo);
if (!s)
{
+ if (uri)
+ {
+ axutil_uri_free(uri, env);
+ }
uri = NULL;
goto end;
}
@@ -439,6 +443,15 @@
s = NULL; /* no port */
}
}
+ else if (*hostinfo == '[')
+ {
+ if (uri)
+ {
+ axutil_uri_free(uri, env);
+ }
+ uri = NULL;
+ goto end;
+ }
else
{
s = axutil_memchr(hostinfo, ':', uri_str - hostinfo);
@@ -466,6 +479,10 @@
goto deal_with_path;
}
/* Invalid characters after ':' found */
+ if (uri)
+ {
+ axutil_uri_free(uri, env);
+ }
uri = NULL;
goto end;
}
@@ -541,6 +558,11 @@
s = rsb + 1;
++hostinfo;
v6_offset1 = 1;
+ }
+ else if (*hostinfo == ':')
+ {
+ axutil_uri_free(uri, env);
+ return NULL;
}
else
{
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org