axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From din...@apache.org
Subject svn commit: r477812 - /webservices/axis2/trunk/c/modules/core/context/ctx.c
Date Tue, 21 Nov 2006 18:43:43 GMT
Author: dinesh
Date: Tue Nov 21 10:43:43 2006
New Revision: 477812

URL: http://svn.apache.org/viewvc?view=rev&rev=477812
Log:
fixed:simple axis server segfaults on REST get requests

Modified:
    webservices/axis2/trunk/c/modules/core/context/ctx.c

Modified: webservices/axis2/trunk/c/modules/core/context/ctx.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/context/ctx.c?view=diff&rev=477812&r1=477811&r2=477812
==============================================================================
--- webservices/axis2/trunk/c/modules/core/context/ctx.c (original)
+++ webservices/axis2/trunk/c/modules/core/context/ctx.c Tue Nov 21 10:43:43 2006
@@ -168,10 +168,15 @@
             axis2_property_t *temp_value = 
                 axis2_hash_get(ctx_impl->non_persistent_map, key, 
                     AXIS2_HASH_KEY_STRING);
-            if (temp_value && temp_value != value)
-            {
-                AXIS2_PROPERTY_FREE(temp_value, env);
-            }
+			if (temp_value)
+			{
+				void *temp_value_value = AXIS2_PROPERTY_GET_VALUE (temp_value, env);
+				void *value_value = AXIS2_PROPERTY_GET_VALUE (value, env);
+				if (temp_value_value != value_value)
+				{
+					AXIS2_PROPERTY_FREE(temp_value, env);
+				}
+			}
         }
         if (ctx_impl->non_persistent_map)
             axis2_hash_set(ctx_impl->non_persistent_map, key,



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message