ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject cvs commit: ws-axis/c/src/engine Axis.cpp
Date Tue, 06 Apr 2004 07:54:35 GMT
damitha     2004/04/06 00:54:35

  Modified:    c/src/engine Axis.cpp
  Log:
  When it tries to write to client side log file ClientAxisLog there throws
  a segfault. I found that this bug was introduced by the code intended
  for supporting client side wsdd in Axis.cpp. I fixed the bug.
  
  Revision  Changes    Path
  1.44      +9 -9      ws-axis/c/src/engine/Axis.cpp
  
  Index: Axis.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/engine/Axis.cpp,v
  retrieving revision 1.43
  retrieving revision 1.44
  diff -u -r1.43 -r1.44
  --- Axis.cpp	5 Apr 2004 09:16:03 -0000	1.43
  +++ Axis.cpp	6 Apr 2004 07:54:35 -0000	1.44
  @@ -301,20 +301,20 @@
   		int status = g_pConfig->ReadConfFile();/*Read from the configuration file*/
           if(status == AXIS_SUCCESS)
           {
  -            char* pClientWsddPath = g_pConfig->GetClientWsddFilePath();
  -			/* May be there is no client side handlers configured. So may not have 
  -			 * CLIENTWSDDFILEPATH entry in axiscpp.conf */
  -			if (!pClientWsddPath) return status; 
  -            if (AXIS_SUCCESS != g_pWSDDDeployment->LoadWSDD(pClientWsddPath)) return
AXIS_FAIL;
  -			#if defined(__AXISTRACE__)
  +		#if defined(__AXISTRACE__)
   			status = g_pAT->openFileByClient();
   			if(status == AXIS_FAIL)
   			{
   				return AXIS_FAIL;
   			}
  -			#endif
  -		}
  -		else
  +		#endif
  +		char* pClientWsddPath = g_pConfig->GetClientWsddFilePath();
  +	    	/* May be there is no client side handlers configured. So may not have 
  +		* CLIENTWSDDFILEPATH entry in axiscpp.conf */
  +		if (!pClientWsddPath) return status; 
  +            	if (AXIS_SUCCESS != g_pWSDDDeployment->LoadWSDD(pClientWsddPath)) return
AXIS_FAIL;
  +	}
  +	else
           {
               AXISTRACE1("Reading from the configuration file failed. " \
               "Check for error in the configuration file", CRITICAL);
  
  
  

Mime
View raw message