axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject cvs commit: ws-axis/c/src/transport/axis2 Axis2Transport.cpp
Date Mon, 06 Dec 2004 02:36:59 GMT
samisa      2004/12/05 18:36:59

  Modified:    c/src/transport/axis2 Axis2Transport.cpp
  Log:
  Added logic to test for NULL values for both key and value in Axis2Transport::setTransportProperty().
Fix for AXISCPP-295.
  
  Revision  Changes    Path
  1.27      +5 -2      ws-axis/c/src/transport/axis2/Axis2Transport.cpp
  
  Index: Axis2Transport.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/transport/axis2/Axis2Transport.cpp,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- Axis2Transport.cpp	1 Dec 2004 03:20:42 -0000	1.26
  +++ Axis2Transport.cpp	6 Dec 2004 02:36:59 -0000	1.27
  @@ -737,6 +737,9 @@
   Axis2Transport::setTransportProperty (const char *pcKey, const char *pcValue)
   throw (AxisTransportException)
   {
  +    if ( !pcKey || !pcValue ) // Samisa - fix for AXISCPP-295. We must check for valid
values here.
  +        return;
  +
       bool b_KeyFound = false;
   
       if (strcmp (pcKey, "SOAPAction") == 0
  @@ -1177,7 +1180,7 @@
           m_strReceived =
               m_strReceived.substr (m_strReceived.find ("\r\n\r\n") +
                                             4);
  -        int intMimeTemp = m_strReceived.find(m_strMimeBoundary);
  +        unsigned int intMimeTemp = m_strReceived.find(m_strMimeBoundary);
           if (intMimeTemp != std::string::npos)
           {
                m_strReceived = m_strReceived.substr(0, intMimeTemp); 
  @@ -1190,7 +1193,7 @@
       }
       else
       {
  -        int intMimeTemp = m_strReceived.find(m_strMimeBoundary);
  +        unsigned int intMimeTemp = m_strReceived.find(m_strMimeBoundary);
           if (intMimeTemp != std::string::npos)
           {
                m_strReceived = m_strReceived.substr(0, intMimeTemp); 
  
  
  

Mime
View raw message