axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r382094 - /webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c
Date Wed, 01 Mar 2006 17:36:12 GMT
Author: sahan
Date: Wed Mar  1 09:36:10 2006
New Revision: 382094

URL: http://svn.apache.org/viewcvs?rev=382094&view=rev
Log:
Removed a double free

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

Modified: webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c?rev=382094&r1=382093&r2=382094&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c Wed Mar 
1 09:36:10 2006
@@ -794,6 +794,7 @@
         len = AXIS2_STREAM_READ(in_stream, env, buffer, read_len);
         if(len > 0)
         {
+                buffer[len] = '\0';
             ((axis2_callback_info_t*)ctx)->unread_len -= len;
         }
         return len;
@@ -902,13 +903,6 @@
         {
             AXIS2_OM_STAX_BUILDER_FREE(om_builder, env);
             om_builder = NULL;
-            xml_reader = NULL;
-            return NULL;
-        }
-		if(NULL == soap_builder)
-        {
-            AXIS2_OM_STAX_BUILDER_FREE(om_builder, env);
-			om_builder = NULL;
             xml_reader = NULL;
             return NULL;
         }



Mime
View raw message