ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r391265 - /webservices/axis2/trunk/c/modules/core/transport/http/receiver/http_server.c
Date Tue, 04 Apr 2006 09:58:44 GMT
Author: samisa
Date: Tue Apr  4 02:58:42 2006
New Revision: 391265

URL: http://svn.apache.org/viewcvs?rev=391265&view=rev
Log:
Fixed the problem of picking the correct listen port

Modified:
    webservices/axis2/trunk/c/modules/core/transport/http/receiver/http_server.c

Modified: webservices/axis2/trunk/c/modules/core/transport/http/receiver/http_server.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/transport/http/receiver/http_server.c?rev=391265&r1=391264&r2=391265&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/receiver/http_server.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/receiver/http_server.c Tue Apr 
4 02:58:42 2006
@@ -164,13 +164,18 @@
 {
     axis2_http_server_impl_t *server_impl = NULL;
 	axis2_char_t *port_str = NULL;
+    axis2_param_t *param = NULL;
 	
 	AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     server_impl = AXIS2_INTF_TO_IMPL(server);
 	
 	server_impl->conf_ctx = conf_ctx;
-	port_str = (axis2_char_t*)AXIS2_PARAM_CONTAINER_GET_PARAM(
+    param = (axis2_char_t*)AXIS2_PARAM_CONTAINER_GET_PARAM(
 						in_desc->param_container, env, "port");
+    if(NULL != param)
+    {
+	    port_str = AXIS2_PARAM_GET_VALUE(param, env);
+    }
 	if(NULL != port_str)
 	{
 		server_impl->port = atoi(port_str);



Mime
View raw message