Return-Path: Delivered-To: apmail-ws-axis-cvs-archive@www.apache.org Received: (qmail 12779 invoked from network); 4 Apr 2006 09:59:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Apr 2006 09:59:09 -0000 Received: (qmail 22489 invoked by uid 500); 4 Apr 2006 09:59:06 -0000 Delivered-To: apmail-ws-axis-cvs-archive@ws.apache.org Received: (qmail 22253 invoked by uid 500); 4 Apr 2006 09:59:05 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 22239 invoked by uid 500); 4 Apr 2006 09:59:05 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 22235 invoked by uid 99); 4 Apr 2006 09:59:05 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Apr 2006 02:59:05 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 04 Apr 2006 02:59:05 -0700 Received: (qmail 12577 invoked by uid 65534); 4 Apr 2006 09:58:44 -0000 Message-ID: <20060404095844.12576.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r391265 - /webservices/axis2/trunk/c/modules/core/transport/http/receiver/http_server.c Date: Tue, 04 Apr 2006 09:58:44 -0000 To: axis2-cvs@ws.apache.org From: samisa@apache.org X-Mailer: svnmailer-1.0.7 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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);